30 lines
1.4 KiB
AutoIt
30 lines
1.4 KiB
AutoIt
#region ---Au3Recorder generated code Start (v3.3.7.0) ---
|
||
|
||
#region --- Internal functions Au3Recorder Start ---
|
||
Func _Au3RecordSetup()
|
||
Opt('WinWaitDelay',100)
|
||
Opt('WinDetectHiddenText',1)
|
||
Opt('MouseCoordMode',0)
|
||
EndFunc
|
||
|
||
Func _WinWaitActivate($title,$text,$timeout=0)
|
||
$CloseWeb = 0
|
||
$result = 0
|
||
While $CloseWeb = 0
|
||
WinActive($title,$text)
|
||
$CloseWeb = WinGetHandle($title,$text)
|
||
Sleep(500)
|
||
if $result >= 10 Then Exit 0
|
||
$result = $result + 1
|
||
WEnd
|
||
WinClose($CloseWeb)
|
||
Exit 0
|
||
EndFunc
|
||
|
||
_AU3RecordSetup()
|
||
#endregion --- Internal functions Au3Recorder End ---
|
||
|
||
RunWait($CmdLine[1])
|
||
_WinWaitActivate($CmdLine[2],"")
|
||
#endregion --- Au3Recorder generated code End ---
|