I have this function which works fine:
Code: Select all
IsTextSelected()
{
SavedClip := ClipboardAll()
A_Clipboard := ""
Send("^c")
Errorlevel := !ClipWait(0.5) ; Wait for the clipboard to contain data
if (!ErrorLevel) ; There is data on clipboard
return (true)
else
return (false)
; Sleep(100)
A_Clipboard := SavedClip
SavedClip := ""
return
}
Is there a way to speed up the process.
Or is there another method to achieve that?