"Are you actually trying to CREATE a KeyEvent, or only to duplicate the EFFECTS of a KeyEvent? Certainly you can Listen for the user to press a Key and then Turn THAT KeyEvent into something else." Actually what i want to do is that my java code sends the command and automatically particular alphabet is typed through the keyboard. Thanks Vishal Shah
Why can't you just write to it like an output file? One way or the other I am certain that you do NOT need KeyPresses, you just need data to get into that file. There is no need to get the HARDWEAR involved in that.
"JavaRanch, where the deer and the Certified play" - David O'Meara
nope , that won't do it , You can't do it like that. I think you would need JNI to get this done. First you would need to get a handle to that Word window. THen locate the Document itself and then only write to it. I think this are the steps you have to take to do this.