11 lines
507 B
AutoIt
11 lines
507 B
AutoIt
Opt("WinTitleMatchMode", 2)
|
|
Global $pid = Run(@ScriptDir & "\test.exe")
|
|
Local $h = WinWait("PARAVIS FLASH", "", 20)
|
|
Sleep(1500)
|
|
Local $w = WinGetPos($h)
|
|
ConsoleWrite("окно: " & $w[2] & "x" & $w[3] & @CRLF)
|
|
For $i = 1 To 14
|
|
Local $p = ControlGetPos($h, "", "[CLASS:Static; INSTANCE:" & $i & "]")
|
|
Local $t = ControlGetText($h, "", "[CLASS:Static; INSTANCE:" & $i & "]")
|
|
If IsArray($p) And $t <> "" Then ConsoleWrite(" Static" & $i & " y=" & $p[1] & " h=" & $p[3] & " : " & $t & @CRLF)
|
|
Next |