#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("KH", 116, 211, 192, 124)
$Checkbox1 = GUICtrlCreateCheckbox("1", 8, 0, 25, 17)
$Checkbox2 = GUICtrlCreateCheckbox("2", 8, 16, 25, 17)
$Checkbox3 = GUICtrlCreateCheckbox("3", 8, 32, 25, 17)
$Checkbox4 = GUICtrlCreateCheckbox("4", 8, 48, 25, 17)
$Checkbox5 = GUICtrlCreateCheckbox("5", 8, 64, 25, 17)
$Checkbox6 = GUICtrlCreateCheckbox("6", 8, 80, 25, 17)
$Checkbox7 = GUICtrlCreateCheckbox("7", 8, 96, 25, 17)
$Checkbox8 = GUICtrlCreateCheckbox("8", 8, 112, 25, 17)
$Checkbox9 = GUICtrlCreateCheckbox("9", 8, 128, 25, 17)
$Button1 = GUICtrlCreateButton("START", 0, 152, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("STOP", 0, 184, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
opt("SendKeyDownDelay",250)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
While 1>0
$Checkbox1= GUICtrlRead(3)
$Checkbox2= GUICtrlRead(4)
$Checkbox3=GUICtrlRead(5)
$Checkbox4= GUICtrlRead(6)
$Checkbox5= GUICtrlRead(7)
$Checkbox6=GUICtrlRead(8)
$Checkbox7= GUICtrlRead(9)
$Checkbox8= GUICtrlRead(10)
$Checkbox9=GUICtrlRead(11)
$nMsg = GUIGetMsg()
If $Checkbox1=1 Then
Send("{asc 49}")
EndIf
If $Checkbox2=1 Then
Send("{asc 50}")
EndIf
If $Checkbox3=1 then
Send("{3}")
EndIf
If $Checkbox4=1 Then
Send("{4}")
EndIf
If $Checkbox5=1 then
Send("{5}")
EndIf
If $Checkbox6=1 Then
Send("{6}")
EndIf
If $Checkbox7=1 then
Send("{7}")
EndIf
If $Checkbox8=1 Then
Send("{8}")
EndIf
If $Checkbox9=1 Then
Send("{9}")
EndIf
If $nMsg=$Button2 Then ExitLoop
WEnd
EndSwitch
WEnd