#include <GUIConstantsEx.au3>
#include <MsgBoxConstants.au3>
Local $hGUI = GUICreate("Example", 300, 300)
Local $state = 0
GUICtrlCreateLabel("Часы", 10,0)
Local $idComboBox_1 = GUICtrlCreateCombo("0", 10, 20, 185, 20)
GUICtrlCreateLabel("Минуты", 10,40)
Local $idComboBox_2 = GUICtrlCreateCombo("0", 10,60, 185, 20)
GUICtrlCreateLabel("Секунды", 10,80)
Local $idComboBox_3 = GUICtrlCreateCombo("0", 10,100, 185, 20)
Local $idInput = GUICtrlCreateInput("notepad", 10, 140, 200, 20)
Local $idButton = GUICtrlCreateButton("Run", 10,170,50, 25)
for $i = 1 to 59
if $i < 24 then GUICtrlSetData($idComboBox_1,$i)
GUICtrlSetData($idComboBox_2,$i)
GUICtrlSetData($idComboBox_3,$i)
Next
GUISetState(@SW_SHOW, $hGUI)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
Case $idButton
$state = 1
EndSwitch
if $state == 1 then
$data_1 = GUICtrlRead($idComboBox_1)
$data_2 = GUICtrlRead($idComboBox_2)
$data_3 = GUICtrlRead($idComboBox_3)
if Number(@HOUR) = $data_1 and Number(@MIN) = $data_2 and Number(@SEC) = $data_3 then
Run(GUICtrlRead($idInput))
$state = 0
EndIf
EndIf
WEnd
|