Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Monitoring the clipboard

Status
Not open for further replies.

AMiSM

Technical User
Joined
Jan 26, 2006
Messages
128
Location
US
I'm trying to figure out how to monitor the clipboard for changes. This is probably pretty dirty, but I don't see why it doesn't work right:

use Win32::Clipboard;
$clip = Win32::Clipboard();
while (1) {
$clip->Empty();
$text = "";
while ( $text eq "" ) {
$text = $clip->get();
}
print "$text\n";
}
 
at minimum $clip->get() should be $clip->Get()

see if that helps.
 

Duh. Brain fart. It works now. Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top