Dinesh966 / jnativehook

Automatically exported from code.google.com/p/jnativehook
0 stars 0 forks source link

Pause/Break key shows released instantly after pressed, even when still held down #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. using example in JNativeHookDemo, can see that when pressing pause/break it 
instantly shows released even while still pressed.

What is the expected output? What do you see instead?
Should not see native_key_released trigger until button is released, instead 
shows native_key_released immediately after pressed.

What version of the product are you using? On what operating system?
1.1.4
Windows 7 64bit

Please provide any additional information below.

Original issue reported on code.google.com by Michael....@gmail.com on 31 May 2013 at 10:18

GoogleCodeExporter commented 9 years ago
Doesn't seem to be happening any more after reboot, not sure what caused this.

Original comment by Michael....@gmail.com on 31 May 2013 at 4:21

GoogleCodeExporter commented 9 years ago
Hi Michael, 

There have been some interesting things happening with the low level hooks on 
Windows >= Vista.  I still don't know exactly what is causing the problem, but 
it looks like other programs maybe interfering with the hook for some reason.  
I have started work on version 1.2 which will externalize the hook from Java 
allowing for much simpler debugging.  Once that is done I will see if I can 
better determine why this is happening.  If you notice the problem again see if 
you can figure out if there is a program running that maybe triggering it or 
how to reproduce it.

Thanks for the report.
Alex Barker

Original comment by a...@1stleg.com on 31 May 2013 at 10:07

GoogleCodeExporter commented 9 years ago
One other thing, what languages do you have configured and which one is the 
default. 

Original comment by a...@1stleg.com on 31 May 2013 at 10:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
That's a keyboard hardware feature, and cannot be worked around in any 
software. See http://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html#ss1.1

"The [pause key] produces scancode sequence e1 1d 45 e1 9d c5 when pressed 
(without modifier) and nothing at all upon release"

notice that 45 is a make code and c5 is a break code for the same scancode 
(c5h=45h+80h).

Rather, it's strange if it doesn't give a release code right after pressing.

Original comment by mark.jeronimus@gmail.com on 22 Jul 2013 at 12:03

GoogleCodeExporter commented 9 years ago

Original comment by a...@1stleg.com on 22 Jan 2014 at 7:39