Use function WaitClipboardText to wait until the clipboard text changed
Now Automatic Mouse and Keyboard has a new function WaitClipboardText. You can use it to wait until the clipboard text changed.
If the argument Timeout is 0, then WaitClipboardText will wait indefinitely. When the user copied some text, then the clipboard text will change and WaitClipboardText will return the text which has been copied.