Hi all,
Apologies if this has been asked in this forum already, but I keep getting error messages when I try to search the forum. How do I set a variable to the value in the clipboard?
Any help?
Thanks!
Keith
Hi all,
Apologies if this has been asked in this forum already, but I keep getting error messages when I try to search the forum. How do I set a variable to the value in the clipboard?
Any help?
Thanks!
Keith
Hi Keith,
We don't have an in-built action for assigning the text on the clipboard to a variable, but you can use the 'Run Script' action to run the following script:
[code]ClipboardText = GetClipBoardText();[/code]
Where 'ClipboardText' is the name of the Automise variable to put the text into. I've attached an example project which demonstrates this.
Regards,
Paul.
Thanks very much! Ive inserted a Run Script form, and pasted in…
Outcome1 = GetClipBoardText();
…into the OnExecute tab. I get an Unexpected end of statement error.
I notice in your example job your OnExecute tab has { and } characters, whereas mine does not. What have I missed?
Thanks!
Ignore that! I just removed the semi-colon, thanks