0

我正在使用 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 分钟。

谢谢

4

0 回答 0