#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 268, 117, 455, 279)
$Radio1 = GUICtrlCreateRadio("03", 32, 24, 41, 17)
$Radio2 = GUICtrlCreateRadio("04", 72, 24, 41, 17)
$Radio3 = GUICtrlCreateRadio("05", 112, 24, 49, 17)
$Input = GUICtrlCreateInput("", 24, 64, 145, 21)
$Button1 = GUICtrlCreateButton("Button1", 176, 64, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Input
If "03" == StringMid(GUICtrlRead($Input), 1, 2) Then GUICtrlSetState($Radio1, $gui_checked)
If "04" == StringMid(GUICtrlRead($Input), 1, 2) Then GUICtrlSetState($Radio2, $gui_checked)
If "05" == StringMid(GUICtrlRead($Input), 1, 2) Then GUICtrlSetState($Radio3, $gui_checked)
EndSwitch
WEnd
|