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