You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
When I am using the jcef framework to develop Windows desktop programs, I use jnativehook to listen to the barcode scanner and keyboard input. When I use the barcode scanner to continuously and quickly scan the code, there may be a shortage of execution of the NativeKeyListener callback method. For example, barcode 6901028240410 has a total of 13 digits, but nativeKeyTyped only executes 12 times, resulting in outputs of 6, 9, 0, 1, 2, 8, 2, 4, 0, 4, 1, 0.
My program is as follows:
Hi,
When I am using the jcef framework to develop Windows desktop programs, I use jnativehook to listen to the barcode scanner and keyboard input. When I use the barcode scanner to continuously and quickly scan the code, there may be a shortage of execution of the NativeKeyListener callback method. For example, barcode 6901028240410 has a total of 13 digits, but nativeKeyTyped only executes 12 times, resulting in outputs of 6, 9, 0, 1, 2, 8, 2, 4, 0, 4, 1, 0.
My program is as follows:
private void registerScanListener() {
try {
scanLogger.setLevel(java.util.logging.Level.OFF);
GlobalScreen.setEventDispatcher(new SwingDispatchService());
GlobalScreen.registerNativeHook();
}
catch (NativeHookException e) {
e.printStackTrace();
}
The text was updated successfully, but these errors were encountered: