AutoHotkey,Ctrl + F,如果发现结果比睡眠其他

时间:2013-06-17 16:27:26

标签: autohotkey

我正在使用AHK通过按CTRL + F在Internet Explorer中找到一些文本。

我很难对这种情况进行编码。

If result is not found then go to next command elseif result is found then Sleep, 5000

由于

我已经

MouseClick, left,  704,  204
Sleep, 300
Send, {CTRLDOWN}c{CTRLUP}
MouseClick, left, -918,  191
Sleep, 300
WinWait, Example - Windows Internet Explorer, 
IfWinNotActive, Example  - Windows Internet Explorer, , WinActivate, Example - Windows Internet Explorer, 
WinWaitActive, Example - Windows Internet Explorer, 
Send, {CTRLDOWN}a{CTRLUP}{CTRLDOWN}v{CTRLUP}{TAB}{SPACE}
Sleep, 100
MouseClick, left,  1402,  538
Sleep, 500
WinWait, Log - Windows Internet Explorer, 
IfWinNotActive, Log - Windows Internet Explorer, , WinActivate, Log - Windows Internet Explorer, 
WinWaitActive, OutageLog - Windows Internet Explorer, 
MouseClick, left,  515,  299
Sleep, 300
Send, {CTRLDOWN}f{CTRLUP}
WinWait, Find, 
IfWinNotActive, Find, , WinActivate, Find, 
WinWaitActive, Find, 
Send, man{SHIFTDOWN}-{SHIFTUP}abc{SHIFTDOWN}-{SHIFTUP}comment{SHIFTDOWN}-{SHIFTUP}made
MouseClick, left,  116,  15
Sleep, 300
WinWait, Log - Windows Internet Explorer, 
IfWinNotActive, Log - Windows Internet Explorer, , WinActivate, Log - Windows Internet Explorer, 
WinWaitActive, Log - Windows Internet Explorer, 
;MouseClick, left,  656,  265
Sleep, 1000
controlGetText, resTxt, static3, ahk_class #32770 ;doesn't work
msgbox %resTxt% ;doesn't work

从这里开始,如果不匹配则在CTRL+F之后找到,而不是我希望它关闭日志窗口,如果匹配它,我想要循环中断或睡眠1分钟。

由于

0 个答案:

没有答案