View Single Post
  #1 (permalink)  
Old April 6th, 2007, 07:28 AM
wernerhp wernerhp is offline
Registered User
 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Windows Keyboard Commands

hi

i want to write an application (or library) that can send keyboard command or keypress directly to the windows o/s.

the thing is i'm writing a program in Java, but Java can't globally control input devices such as the mouse or keyboard. now i want to use JNI to call the C++ method, since C++ can globally control input devices if i understand correctly. i want this Java app to run and have full control over the windows keyboard to navigate the OS.

like for instance Logitech Gaming Software allows you to map keyboard or mouse commands to a game pad that can then navigate your os. also VNC programs that make use of a java applet to view another PCs desktop can control the whole other computer... how do i do this?

all info & code samples will be very much appreciated! thanks a lot!

Reply With Quote