Forum: Ruby monitoring clipboard data in Windows

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
12f198d3038b21ac737c05e1208c82fe?d=identicon&s=25 Chris Worrall (Guest)
on 2007-07-30 01:31
(Received via mailing list)
I'm looking for a way to monitor the windows clipboard data for
changes, then do something to the freshly copied data. I have the
win32-clipboard library, and I could hack together something with a
persistent loop, but this sounds like it would be rough on processing
overhead. While looking around for alternatives, I found the Win32API
function call to SetClipboardViewer, but with only a month of Ruby
under my belt and no C, it all looks a little byzantine to me.

Anyone have suggestions for a different implementation, or a few good
resources for a newbie to the Win32API module? I'd appreciate any
suggestions you could offer.
This topic is locked and can not be replied to.