Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Conrad Evans   on Jun 10 In Java Category.

  
Question Answered By: Cadencia Bernard   on Jun 10

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...

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on How to copy to clip board Or get search suggestion and latest updates.


Tagged: