Hello:
I just joined and posting my first question for help.
I get an intermittent error at the line cl=%clipboard%, usually after running several times. Also get multiple instances of this script running after repeated errors.
Any help would be appreciated, thanks.
#SingleInstance force
DetectHiddenWindows, On
WinActivate, new - Notepad,
sleep, 25
click, 60,274
loop, 2
{
clipboard=
Sendinput, {CTRLDOWN}{home}a{CTRLUP}
sleep, 22
Sendinput, {CTRLDOWN}c{CTRLUP}
sleep, 77
clipWait, 1
ifNotEqual,clipboard,,break
ifequal,vv1,1,break
vv1=1
}
cl=%clipboard%
sleep,2000
.....
end:
sendinput, {esc}
Esc::ExitApp
var=clipboard error
Re: var=clipboard error
Can you post the text of the error?
Re: var=clipboard error
Here is an alternative using controlGetText (http://ahkscript.org/docs/commands/ControlGet.htm)
Code: Select all
ControlGetText, theText, Edit1, ahk_class Notepad
Clipboard := theText
Re: var=clipboard error
Error message is:
Error: Can't open clipboard for reading.... The current thread will exit.
ControlGetText didn't copy anything to theText. I don't quite get the meaning of the control, Edit1.
Error: Can't open clipboard for reading.... The current thread will exit.
ControlGetText didn't copy anything to theText. I don't quite get the meaning of the control, Edit1.
Who is online
Users browsing this forum: hiahkforum and 386 guests