Check Clipboard Contents
Populate a variable with the text contents of the clipboard using the Clipboard() function
This task will populate a variable with the text contents of the clipboard using the Clipboard() function and then evaluate the contents with an IF conditional.
The Clipboard() function both sets data to the clipboard similar to performing Control + C or Edit|Copy menu command, and returns data from the clipboard similar to performing a Control + V or Edit|Paste menu command.
In this sample task, 'varclipboard' is being evaluated to see if it is equal to the text 'Hello World'. This can be tested by copying Hello World to the clipboard and then running the task. If it matches, a message box with 'ok' will appear.