Krombik / keysender

Node.js Desktop Automation for Windows.
MIT License
75 stars 6 forks source link

Question/Suggestion: Ability to pass through GlobalHotkey key (Side effects only) #2

Closed nfour closed 3 years ago

nfour commented 3 years ago

Hi!

I'd like to be able to, on pressing a trigger an action as a side effect, however, I'd like a to come through as normal.

Is there a way to do this?

Krombik commented 3 years ago

No, here you can find why, but you can try sendKey('a') method from Virtual module, but not all windows support it.

nfour commented 3 years ago

Thanks, that is too bad.

My use case is macros for a video game - I use AHK , but it tends to grow in difficulty when building more complex async control flow.

Krombik commented 1 year ago

@nfour from 2.1.0 it is possible by using LowLevelHook class