On 2/24/2010 1:26 PM, Doug Lee wrote:
In lieu of an immediate ClipboardChanged event implementation in WE,
is there a way to do this by attaching a function to a window message?

You might have some luck watching for WM_DESTROYCLIPBOARD. For example, using Immed:

Function MessageHook(msg, wObj, lParam, wParam) : print "Clipboard Changed!" : End Function
Set x = AttachWindowMessage("MessageHook", &H307, DesktopWindow, True)

The drawback is that this message fires before the contents change, and it's not always firing for me when I think it should, but it seems to be robust enough to do what you want.

There's also a WM_CLIPBOARDUPDATE, but I'm not getting any of those messages for some reason.

Aaron

--
Aaron Smith
Product Support Specialist * Web Development
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com

To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.

Reply via email to