Code: Select all
!W:: ; Alt + W
clipboard := ""
SendInput ^c
ClipWait, 1 ; Wait for clipboard to populate
if ErrorLevel ; ErrorLevel is TRUE implies clipboard did NOT become populated, which means nothing was selected
{
MsgBox NO, there is nothing in the clipboard
}
Else
{
MsgBox YES, there is something in the clipboard
}
Return
Are there "backdoor" methods for issuing a copy command via AHK? I'm wondering whether this bizarre behaviour is triggered by the built-in methods for copying: pressing Ctrl + C, or choosing Copy from a context menu.