GUICtrlCreateCheckbox, oluşturduğu kontrolün id'sini gönderir. Kontrolün değerini GUICtrlRead ile okumalısın.
[code]
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 133, 192, 124)
$Input1 = GUICtrlCreateInput("Input1", 72, 0, 49, 21)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 0, 0, 73, 25)
$Input2 = GUICtrlCreateInput("Input2", 128, 0, 41, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1=1
$vStatus = GUICtrlRead( $Checkbox1)
If $vStatus = 1 Then
Send("1")
Sleep(1000)
EndIf
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
[/code]