From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clipboard data changed notification

How can I find out when the clipboard data has changed without constantly polling the clipboard? Can windows notify me about the change? How?
0 Kudos
Message 1 of 2
(2,098 Views)
Not sure if will work for LabVIEW, but essentially you need to register the window to receive messages from the clipboard. This is done using the SetClipboardViewer function. As for receiving/monitoring messages, the message you want is the WM_DRAWCLIPBOARD message. This is sent to the window that was registeres with the SetClipboardViewer function. There's an example here on monitoring Windows messages.
0 Kudos
Message 2 of 2
(2,086 Views)