@@ -0,0 +1,1075 @@
+package iot.pi.queue.run;%0A%0Aimport java.util.logging.Level;%0Aimport java.util.logging.LogManager;%0Aimport java.util.logging.Logger;%0A%0Aimport org.jnativehook.GlobalScreen;%0Aimport org.jnativehook.NativeHookException;%0Aimport org.jnativehook.keyboard.NativeKeyEvent;%0Aimport org.jnativehook.keyboard.NativeKeyListener;%0A%0Apublic class QueueRunner implements NativeKeyListener %7B %0A%09%0A%09public QueueRunner() %7B %0A%09%09try %7B%0A%09%09%09GlobalScreen.registerNativeHook();%0A%09%09%7D catch (NativeHookException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%09GlobalScreen.addNativeKeyListener(this);%0A%09%09LogManager.getLogManager().reset();%0A%09%09Logger logger = Logger.getLogger(GlobalScreen.class.getPackage().getName());%0A%09%09logger.setLevel(Level.OFF);%0A%09%7D%0A%0A%09public static void main(String%5B%5D args) %7B %0A%09%09QueueRunner test = new QueueRunner();%0A%09%7D%0A%0A%09@Override%0A%09public void nativeKeyPressed(NativeKeyEvent arg0) %7B%0A%09%7D%0A%0A%09@Override%0A%09public void nativeKeyReleased(NativeKeyEvent arg0) %7B%0A%09%09System.out.println(arg0.getRawCode());%0A%09%09%0A%09%7D%0A%0A%09@Override%0A%09public void nativeKeyTyped(NativeKeyEvent arg0) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09%0A%09%7D%0A%0A%7D%0A

add class