#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Opt("SendKeyDownDelay", 200) ; задержка нажатия клавиш, т.е. клавиша будет удерживаться 0,2 сек
#Region ### START Koda GUI section ### Form=D:\AutoIT\Koda\Test Click!T.kxf
$Form1 = GUICreate("TEST Click!T", 453, 312, 192, 124)
$MenuI1 = GUICtrlCreateMenu("Меню")
$start = GUICtrlCreateMenuItem("Click!T", $MenuI1)
$pause = GUICtrlCreateMenuItem("Пауза", $MenuI1)
$exit = GUICtrlCreateMenuItem("Выход", $MenuI1)
$info = GUICtrlCreateMenu("Инфо")
$help = GUICtrlCreateMenuItem("Помощь", $info)
$about = GUICtrlCreateMenuItem("О программе", $info)
$time1 = GUICtrlCreateLabel("Длительность бафа, сек", 16, 32, 184, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$time2 = GUICtrlCreateLabel("Длительность бафа, сек", 16, 69, 184, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$time3 = GUICtrlCreateLabel("Длительность бафа, сек", 16, 106, 184, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$time4 = GUICtrlCreateLabel("Длительность бафа, сек", 16, 143, 184, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$time5 = GUICtrlCreateLabel("Длительность бафа, сек", 16, 180, 184, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$T1 = GUICtrlCreateInput("", 208, 32, 49, 21)
$T2 = GUICtrlCreateInput("", 208, 69, 49, 21)
$T3 = GUICtrlCreateInput("", 208, 106, 49, 21)
$T4 = GUICtrlCreateInput("", 208, 141, 49, 21)
$T5 = GUICtrlCreateInput("", 208, 180, 49, 21)
$button1 = GUICtrlCreateLabel("Кнопка", 272, 32, 57, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$button2 = GUICtrlCreateLabel("Кнопка", 272, 68, 57, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$button3 = GUICtrlCreateLabel("Кнопка", 272, 105, 57, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$button4 = GUICtrlCreateLabel("Кнопка", 272, 142, 57, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$button5 = GUICtrlCreateLabel("Кнопка", 272, 178, 57, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$K1 = GUICtrlCreateCombo("", 344, 32, 80, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "1|2|3|4|5|6|7|8|9|0|-|=|F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12|NUMPAD0|NUMPAD1|NUMPAD2|NUMPAD3|NUMPAD4|NUMPAD5|NUMPAD6|NUMPAD7|NUMPAD8|NUMPAD9")
$K2 = GUICtrlCreateCombo("", 344, 68, 80, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "1|2|3|4|5|6|7|8|9|0|-|=|F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12|NUMPAD0|NUMPAD1|NUMPAD2|NUMPAD3|NUMPAD4|NUMPAD5|NUMPAD6|NUMPAD7|NUMPAD8|NUMPAD9")
$K3 = GUICtrlCreateCombo("", 344, 103, 80, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "1|2|3|4|5|6|7|8|9|0|-|=|F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12|NUMPAD0|NUMPAD1|NUMPAD2|NUMPAD3|NUMPAD4|NUMPAD5|NUMPAD6|NUMPAD7|NUMPAD8|NUMPAD9")
$K4 = GUICtrlCreateCombo("", 344, 139, 80, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "1|2|3|4|5|6|7|8|9|0|-|=|F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12|NUMPAD0|NUMPAD1|NUMPAD2|NUMPAD3|NUMPAD4|NUMPAD5|NUMPAD6|NUMPAD7|NUMPAD8|NUMPAD9")
$K5 = GUICtrlCreateCombo("", 344, 175, 80, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "1|2|3|4|5|6|7|8|9|0|-|=|F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12|NUMPAD0|NUMPAD1|NUMPAD2|NUMPAD3|NUMPAD4|NUMPAD5|NUMPAD6|NUMPAD7|NUMPAD8|NUMPAD9")
$bStart = GUICtrlCreateButton("Click!T", 42, 232, 97, 25)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
$bPause = GUICtrlCreateButton("Пауза", 178, 232, 97, 25)
$bExit = GUICtrlCreateButton("Выход", 314, 232, 97, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
Global $key1 = GUICtrlRead($K1), $key2 = GUICtrlRead($K2), $key3 = GUICtrlRead($K3), $key4 = GUICtrlRead($K4), $key5 = GUICtrlRead($K5) ; назначаем горячие клавиши из ComboBox'a
Global $timer1 = GUICtrlRead($T1), $timer2 = GUICtrlRead($T2), $timer3 = GUICtrlRead($T3), $timer4 = GUICtrlRead($T4), $timer5 = GUICtrlRead($T5) ; объявляем введенные таймеры
$nMsg = GUIGetMsg()
If $nMsg = $GUI_EVENT_CLOSE Or $nMsg = $bExit Or $nMsg = $exit Then ExitLoop
WEnd