kwhat / jnativehook

Global keyboard and mouse listeners for Java.
Other
1.73k stars 344 forks source link

KeyLocation is not working #414

Open Yurilagos opened 2 years ago

Yurilagos commented 2 years ago

for context, when NUMPAD is off the number 9 becomes pageUp and number 3 becomes pagedown. and I need to differentiate the pagedow from the numpad to the one from the common keyboard.

when i try to do this below it seems like there is no difference as if all pageups come from numpad

GlobalScreen.postNativeEvent(new NativeKeyEvent(2401,0,33,3657,org.jnativehook.keyboard.NativeKeyEvent.CHAR_UNDEFINED, 4)); GlobalScreen.postNativeEvent(new NativeKeyEvent(2401,0,33,3657,org.jnativehook.keyboard.NativeKeyEvent.CHAR_UNDEFINED, 1)); i dont know if KeyLocation is work well

kwhat commented 2 years ago

What platform?

Yurilagos commented 2 years ago

I'm creating a Macro for a game, and the game recognizes it as the same claim, my OS is win10 and java verison 8

Yurilagos commented 1 year ago

hello, you verified it? Thanks!