Forum: Ruby monitoring clipboard data in Windows

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Chris Worrall (Guest)
on 2007-07-30 03: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.