jnativehook icon indicating copy to clipboard operation
jnativehook copied to clipboard

Print Screen and Asterisk have the same keycode

Open SayWut opened this issue 6 years ago • 6 comments

Before everything I want to thank you for creating this amazing huge library. I using this library for my project.

I am working on print screen program and I using the print screen button for that. I found out that the Print Screen button and the Asterisk button on the num pad have the same This is the code that I use.

public void nativeKeyPressed(NativeKeyEvent e)
{
	if(e.getKeyCode() == NativeKeyEvent.VC_PRINTSCREEN)
	        System.out.println(e.getRawCode());
}

This is what I do to solve it for now.

public void nativeKeyPressed(NativeKeyEvent e)
{
	if(e.getKeyCode() == NativeKeyEvent.VC_PRINTSCREEN && e.getRawCode() == 44)
                 System.out.println(e.getRawCode());

}

Thank you for everything.

SayWut avatar Apr 11 '18 21:04 SayWut

Hi,

Thanks for reporting this bug. What OS is this on?

kwhat avatar Jun 06 '18 06:06 kwhat

Also experiencing this.

64-Bit Windows 10 Pro AZERTY Keyboard (Belgian layout) (Corsair Strafe RGB)

zeroeightysix avatar Jun 09 '18 13:06 zeroeightysix

I using Windows 10 pro 64bit If you mean that you want my keyboard model so I am using Logitech K330

2018-06-09 16:18 GMT+03:00 zeroeightysix [email protected]:

Also experiencing this.

64-Bit Windows 10 Pro AZERTY Keyboard (Belgian layout) (Corsair Strafe RGB)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kwhat/jnativehook/issues/219#issuecomment-395968535, or mute the thread https://github.com/notifications/unsubscribe-auth/Ai3z2bpb51w4HIuJdIKPgblbWbPOrf7hks5t68sKgaJpZM4TQyJX .

SayWut avatar Jun 11 '18 08:06 SayWut

Any word on this issue? I am having the same problem. Windows 7 64bit, and a real basic HP keyboard (don't know the model)

hopelessdecoy avatar Sep 14 '18 12:09 hopelessdecoy

Same problem, windows 10 64 bit, qwerty us-keyboard.

Skhmt avatar Dec 19 '18 19:12 Skhmt

Windows 10 Home 64 bit QWERTY keyboard English US layout (on laptop) JDK 8 and OpenJDK 11

Also Plus(+) and Minus(-) numpad keys are unknown as well as RightShift

xt449 avatar Mar 08 '19 16:03 xt449