kwhat / jnativehook

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

"Could not find keyboard map for locale 0X0000000004090409!" and "WARNING: Invalid library manifest!" in latest snapshot #233

Open kaxlabs opened 6 years ago

kaxlabs commented 6 years ago

"C:\Program Files\Java\jdk1.8.0_181\bin\java.exe" Aug 04, 2018 7:47:59 PM org.jnativehook.DefaultLibraryLocator getLibraries WARNING: Invalid library manifest!

Aug 04, 2018 7:48:03 PM org.jnativehook.GlobalScreen$NativeHookThread enable SEVERE: refresh_locale_list [628]: Could not find keyboard map for locale 0X0000000004090409!

Aug 04, 2018 7:48:24 PM org.jnativehook.GlobalScreen$NativeHookThread enable SEVERE: refresh_locale_list [628]: Could not find keyboard map for locale 0X0000000004090409!

Unable to get this to work at all with JRE 1.8 update 181. Using 2.1.0 works, but I still get the message:

Aug 04, 2018 7:48:24 PM org.jnativehook.GlobalScreen$NativeHookThread enable SEVERE: refresh_locale_list [628]: Could not find keyboard map for locale 0X0000000004090409!

I'm using an English keyboard. Here's the example code I used in Kotlin: https://pastebin.com/ApzmUft4

grantyeison commented 5 years ago

i have the same issue, some keys are lost in the reading, i mean, in the front program the keys are ok but in the program that use the jnativehook, i only recieve some of the keys, for example, the complete text is: 3035D613D7A5D5C000000002 but i recieve: 3035D6175D5C00000,

and in the logs i see many messages like:

abr 30, 2019 11:03:53 AM org.jnativehook.GlobalScreen$NativeHookThread enable GRAVE: refresh_locale_list [628]: Could not find keyboard map for locale 0X00000000080A240A!

abr 30, 2019 11:03:53 AM org.jnativehook.GlobalScreen$NativeHookThread enable GRAVE: refresh_locale_list [628]: Could not find keyboard map for locale 0X0000000004090409!

abr 30, 2019 11:03:53 AM org.jnativehook.GlobalScreen$NativeHookThread enable GRAVE: refresh_locale_list [628]: Could not find keyboard map for locale 0XFFFFFFFFF0860409!

kwhat commented 3 years ago

Please test jnativehook-2.2-20210107.030301-37.jar I have done some refactoring to the function that is probably responsible for this issue but because I cannot reproduce the problem, I need one of you to test it and let me know if it is working. I still don't know exactly why this was an issue nor why I cannot reproduce it.