As far as the prep of the clipboard goes here is some sample code:
import java.awt.datatransfer.* ;
import java.awt.Toolkit ;
// prep the selected signature for the clipboard
StringSelection content = new StringSelection ("test") ;
Clipboard test = Toolkit.getDefaultToolkit().getSystemClipboard() ;
// copy the selected signature into the systems clipboard
test.setContents(content,null);
As far as the other staff goes someone else has to help you. But it sounds as if
the keys
that you type need to be scanned by the java program first and then inserted
into the
program (notepad, word, or whatever). Sounds like a while loop to me... But I
would think
it decreases performance a bit...