How can a Windows Keyboard Hook Be Implemented with Java?
In Windows operating system, a hook is a mechanism by which a function can intercept events (messages, mouse actions, keystrokes) before they reach an application. The function can act on events and, in some cases, modify or discard them.
In VC++ or VB, it can be implemented with SetWindowsHookEx( ), and CallNextHookEx( ). Ho can it be done with C#? Such as Detecting Caps / Num / Scroll Using a System-wide Keyboard Hook with Java (See http://vbnet.mvps.org/index.html?co...sageboxhook.htm as VB example).
You will have to use JNI and write the keyboard hook in C++
... or you can use the ready solution, which is available in the WinPack library:
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center