Jcee
205 discussion posts
Thanks.that.solves.1.of.the.problems.now.i.still.need.to.be.able.to.use.the.space.bar.outside.and.inside.of.firefox.or.whatever.program.i.choose
Jun 6, 2015 (modified Jun 6, 2015)
•
#3
DS1508
37 discussion posts
Space is still send with this function. But it always executes this script.
It you want to use something like this in a game, i suggest you use another program. Don't know what's available. I own a Logitech Gaming Mouse and Keyboard with extra buttons, that i can assign scripts to. That works much better than redirecting normal keys.
Jcee
205 discussion posts
So there's no way to send the keypress past display fusion? I couldn't even type the spaces in my last post while the script was active (even outside of firefox) Like disabling the function for .1 seconds, send it, and re-enable the function?
DS1508
37 discussion posts
I don't know. I own DF just a few days. Maybe a Dev answers you.
To clarify, are you using the Spacebar as the hotkey that triggers this function? The problem with this is that when the script runs, it sends a space, but then DF picks that up again, and runs the script again, and so on, putting itself into a loop. At the moment, there's no way for the script to say "if whatever, just pass the hotkey through and exit the script." However, I'll see if this is something we could add.
Jcee
205 discussion posts
Yep that is exactly the issue.. Spacebar is the hotkey, that I want to trigger the script, however I would also need it to function normally. in, and outside of the specified program
So i don't need if-whatever pass it through, I need to ALWAYS pass it through. but only run the custom function If the game is the focus.
(IE in the game Im playing, pressing spacebar centers the camera on your character) (and the code, I want to add would center the mouse, click (on your character) and then move the mouse back to its original location.)
I figured it wasn't possible currently, and would envision it to be a checkbox right next to 'key combination' thats labeled 'Pass HotKey Through'