Add build, deploy and test sources

This commit is contained in:
Paravis committed 2026-11-13 07:52:38 +03:00
1 parent 825be27efd
commit b8dfcda031
115 files changed
+8548

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
Opt("WinTitleMatchMode", 2)
Run(@ScriptDir & "\test.exe")
Local $h = WinWait("PARAVIS FLASH", "", 15)
If $h = 0 Then
ConsoleWrite("нет окна" & @CRLF)
Exit
EndIf
Sleep(1800)
ControlClick($h, "", "[CLASS:Static; TEXT:ЗАПИСАТЬ]")
Sleep(1500)
Local $d = WinWait("Подтверждение", "", 3)
ConsoleWrite("подтверждение после ControlClick: " & ($d <> 0) & @CRLF)
If $d = 0 Then
; попробуем клик мышью по центру надписи
Local $pos = ControlGetPos($h, "", "[CLASS:Static; TEXT:ЗАПИСАТЬ]")
If IsArray($pos) Then
MouseClick("left", $pos[0] + $pos[2] / 2, $pos[1] + $pos[3] / 2)
Sleep(1500)
$d = WinWait("Подтверждение", "", 3)
ConsoleWrite("подтверждение после MouseClick: " & ($d <> 0) & @CRLF)
EndIf
EndIf
If $d <> 0 Then
ControlClick($d, "", "[CLASS:Button; INSTANCE:2]")
Sleep(500)
EndIf
WinClose($h)