Files

18 lines
461 B
AutoIt

Opt("WinTitleMatchMode", 2)
Global $pid = Run(@ScriptDir & "\test.exe")
Local $h = WinWait("PARAVIS FLASH", "", 20)
Sleep(1200)
Local $sw = @DesktopWidth, $sh = @DesktopHeight
WinMove($h, "", $sw - 430, $sh - 330)
Sleep(800)
WinActivate($h)
Sleep(400)
Local $wp = WinGetPos($h)
; клик по кнопке «УСТАНОВИТЬ»
MouseMove(Int($wp[0]+188), Int($wp[1]+197), 0)
Sleep(250)
MouseDown("left")
Sleep(150)
MouseUp("left")
Sleep(2000)
Sleep(6000)