If its just a way to automatically toggle when a check box is checked or unchecked, here is code for you
Code: Select all
#NoEnv
#SingleInstance Force
SetWorkingDir %A_ScriptDir%
Gui Add, CheckBox, x176 y32 w120 h23 gCheckit vCheckit, Test
Gui Add, Text, x176 y64 w120 h23 +0x200 vCheckif, Its off
Gui Show, w481 h141, Window
Return
checkit:
ControlGet, checked, checked,, Button1,
if (Checked = 0)
{
guicontrol,,Checkif, Its off
}
else
{
guicontrol,,Checkif, Its On
}
return
GuiEscape:
GuiClose:
ExitApp