Input Device Control
ok, i really didn't know what to put in the subject, but here goes my question...
i want to know how i can control the mouse cursor and/or send keyboard commands to any windows application. what i want to do is use an input device other than a mouse or keyboard and use it to do all the things a mouse or keyboard can do.
an example would be to control the mouse cursor movement with your keyboard's numpad to move up/down/left/right/diagonal etc and the numpad 5 will perform a mouse click. this has to work on any windows application, not only the running java app.
thanks in advance!
[613 byte] By [
wernerhpa] at [2007-11-26 22:48:33]

Well, I don't really know all of it's capabilities, but my guess would be you should check the Robot class before anything else. It does lot of things you mentioned.
i've been through the Robot package, but it only works for the current running application...
how does it work when connecting from your SonyEricsson mobile phone to your PC? or vnc? the answer will probably be something like c++, but maye someone knows about something else?
could you explain to me how JNI native code works and how i can apply it to my problem?
does anybody have another suggestion for my problem?
how does it work when you use a java applet to vnc with another computer?
Message was edited by:
wernerhp