I'm trying to develop a virtual keyboard to be used with text editors for spastic children. I use the Runtime class and exec method to spawn notepad. After spawning the process i need to send keystrokes to the notepad process. i.e., on click of a button in java frame, i need the corresponding char to be printed on the notepad. I tried using Robot in Java, but sends keystroke to window on top only.
Can i send the keystrokes only to the process i want using Robot or any other method in JAVA?
I tried to use frame.setvisible(false) and send the keystroke n then again making the frame visible... but the flicker is obvious and sometimes it doesn't send the keystroke to notepad.
Instead of changing focus is there any other way to send the keystroke to notepad process?
Awaiting your responses..
Thanks
Ramya