I basically want to paste something somewhere by using CTRL+v, and to be sure the paste is complete, I place a Dummy string into the clipboard and use a loop to check and wait for the clipboard to return the Dummy string before continuing.
Code: Select all
Let>Mess=This is a message to test the clipboard.
PutClipBoard>Mess
SetFocus>Untitled - Notepad
Wait>0.1
Press>CTRL
SendText>v
Release>CTRL
\\Put Dummy string into clipboard
PutClipBoard>Dummy
\\Loop to check clipboard until string Dummy is returned, then continue.
The problem, is that, even though I do the CTRL+v to paste and THEN PlaceClipBoard>, PlaceClipBoard> sometimes is faster than CTRL+v resulting in the Dummy string being placed into the clipboard and used by CTRL+v.
The solution is to add a small wait, Wait>0.1 after CTRL+v to give it time to bite, then it works fine every time.