Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Помощь • Re: Скрипт не всегда срабатывает

$
0
0

CODE:

#Requires Autohotkey v1.1
#SingleInstance, force
#NoEnv

ProgramName:= "Program1"
TitleName:= "Диалоговая форма"
TitleClass:= "ahk_class WindowsForms10.Window.8.app.0.329445b_r8_ad1"
WindowTitle:= TitleName . A_Space . TitleClass
ButtonName:= "WindowsForms10.Window.8.app.0.329445b_r8_ad184"
CtrlCommand:= "Visible"

Loop
{
Sleep, 1000
WinWait, % WindowTitle
if !ErrorLevel
{
while WinExist( WindowTitle )
{
if !WinActive( WindowTitle )
WinActivate, % WindowTitle
ControlGet, OutputVar, % CtrlCommand,, % ButtonName, % WindowTitle
if (OutputVar)
{
Sleep, 1000
continue
}
else
{
MsgBox, 262160, % ProgramName, % "Готово"
break
}
}
}
}

Statistics: Posted by vmech — 41 minutes ago



Viewing all articles
Browse latest Browse all 579

Trending Articles