clipboard monitoring

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

clipboard monitoring

christof buerger
can anybody put me in the right direction for searching how it is possible
to monitor the clipboard for every change in the clipboard. I'd like to try
to write a program wich logs all the web-urls, wich are stored in the
clipboard an put them in a tree-view for later use them again.

beside - i just today got my exemplar of the dolphin companion and so i
spend all my time in front of my computer.

thanks in advance
christof


Reply | Threaded
Open this post in threaded view
|

Re: clipboard monitoring

Blair McGlashan
Christof

You wrote in message news:[hidden email]...
> can anybody put me in the right direction for searching how it is possible
> to monitor the clipboard for every change in the clipboard. I'd like to
try
> to write a program wich logs all the web-urls, wich are stored in the
> clipboard an put them in a tree-view for later use them again.
>...

It is achieved by registering a Window on the clipboard notification chain
using the SetClipboardViewer() API. It is then necessary to hook a couple of
new Windows messages and respond to them as described in Microsoft's
documentation, e.g.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/clipb
rd_28tu.asp. A sensible way to proceed would be to add a specialised View
subclass to act as the "event sink" for the clipboard notifications.
Although some fairly low-level Dolphin stuff will be required (e.g.
registering some the new Windows messages and adding handlers, for an
example of which see Ian Bartholomew's base 'IDB Common' package from his
goodies collection: http://www.iandb.org.uk/goodies4/goodies4.html), it
doesn't look to be that complicated.

Regards

Blair


Reply | Threaded
Open this post in threaded view
|

Re: clipboard monitoring

Bill Schwab
Christof,

> Although some fairly low-level Dolphin stuff will be required (e.g.
> registering some the new Windows messages and adding handlers, for an
> example of which see Ian Bartholomew's base 'IDB Common' package from his
> goodies collection: http://www.iandb.org.uk/goodies4/goodies4.html), it
> doesn't look to be that complicated.

Adding support for new messages is not difficult, but, the usual cautions
about making backups applies.  If you're not certain how to do that, then
have a look at

  http://www.object-arts.com/wiki/html/Dolphin/MaintainingAnImage.htm


There's some description of how to add a new handler at

  http://www.object-arts.com/wiki/html/Dolphin/AddingNewWindowsMessages.htm


Have a good one,

Bill

--
Wilhelm K. Schwab, Ph.D.
[hidden email]