The relevant code at the beginning is:
Code: Select all
Clipboard=qx
ClipWait
Sleep, 300
SendInput, ^c
ClipWait
Sleep, 300
Clipboard = %Clipboard% ; remove any leading or trailing spaces
ClipWait
I now have a new laptop, and the exact same program frequently produces an error "can't open clipboard for writing", pointing to this clipboard area of the Autohotkey program, and then terminates Autohotkey.
I typed this into Google and see that there were some problems with this years ago, but they were never solved on these forums.
Is a previous program not releasing the clipboard? Is something else going on? Thanks in advance for any insight.