jnativehook icon indicating copy to clipboard operation
jnativehook copied to clipboard

KeyLocation is not working

Open Yurilagos opened this issue 3 years ago • 3 comments

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

Yurilagos avatar Jul 24 '22 17:07 Yurilagos

What platform?

kwhat avatar Jul 24 '22 18:07 kwhat

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 avatar Jul 24 '22 18:07 Yurilagos

hello, you verified it? Thanks!

Yurilagos avatar Nov 04 '22 21:11 Yurilagos