Code: Select all
Checkbox:
Gui, Submit, NoHide
if (Checkbox1)
Hotkey, %Hotkey1%, HotkeyA, on
else
Hotkey, %Hotkey1%, HotkeyA, off
if (Checkbox2)
Hotkey, %Hotkey2%, HotkeyA, on
else
Hotkey, %Hotkey2%, HotkeyA, off
...
return
Code: Select all
Checkbox:
Gui, Submit, NoHide
Loop,
{
hotkey:=hotkey%index%
if (Checkbox%index%)
Hotkey, %hotkey%, Hotkey%indexwithletter%, on
else
Hotkey, %hotkey%, Hotkey%indexwithletter%, off
}
return