10 lines
622 B
AutoIt
10 lines
622 B
AutoIt
Opt("WinTitleMatchMode", 2)
|
|
Global $pid = Run(@ScriptDir & "\test.exe")
|
|
Local $h = WinWait("PARAVIS FLASH", "", 20)
|
|
Sleep(1800)
|
|
ConsoleWrite("кнопка включена: " & ControlCommand($h, "", "[CLASS:Button; INSTANCE:1]", "IsEnabled") & @CRLF)
|
|
ConsoleWrite("кнопка видима: " & ControlCommand($h, "", "[CLASS:Button; INSTANCE:1]", "IsVisible") & @CRLF)
|
|
ConsoleWrite("до: " & StringRegExpReplace(WinGetText($h), "\v+", " | ") & @CRLF)
|
|
ControlClick($h, "", "[CLASS:Button; INSTANCE:1]")
|
|
Sleep(2500)
|
|
ConsoleWrite("после ControlClick: " & StringRegExpReplace(WinGetText($h), "\v+", " | ") & @CRLF) |