0

CTRL + Fを押して、AHKを使用して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