If ProcessExists("TrueConf.exe") Then
MsgBox(64, "", "TrueConf уже запущен")
Else
Run(@ProgramFilesDir & "\TrueConf Client\TrueConf.exe")
EndIf
; Активация клиента
$client = WinWait("TrueConf Client")
WinActivate($client)
Send("{ALT}{LEFT 3}")
sleep(500)
send("{DOWN 3}")
Sleep(500)
Send("{Enter}")
Sleep(500)
$NetworkWin=WinWait("Сетевые настройки")
WinActivate($NetworkWin)
if ControlCommand($NetworkWin,"","[CLASS:TCheckBox; INSTANCE:3]","IsChecked") Then
MsgBox(0,"","Нажата галочка")
Else
MsgBox(0,"","не нажата")
EndIf
Sleep(1000)
Send("{SPACE}")
if ControlCommand($NetworkWin,"","[CLASS:TCheckBox; INSTANCE:3]","IsChecked") Then
MsgBox(0,"","Нажата галочка")
Else
MsgBox(0,"","не нажата")
EndIf