Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IfNotExist, %A_ScriptDir%\Config.ini
- {
- IniWrite, 0, %A_ScriptDir%\Config.ini, CheckBoxStatus, CheckBox1
- IniWrite, 0, %A_ScriptDir%\Config.ini, CheckBoxStatus, CheckBox2
- IniWrite, 0, %A_ScriptDir%\Config.ini, CheckBoxStatus, CheckBox3
- Ch1=0
- Ch2=0
- Ch3=0
- }
- Else
- IniRead, Ch1, %A_ScriptDir%\Config.ini, CheckBoxStatus, CheckBox1
- IniRead, Ch2, %A_ScriptDir%\Config.ini, CheckBoxStatus, CheckBox2
- IniRead, Ch3, %A_ScriptDir%\Config.ini, CheckBoxStatus, CheckBox3
- Gui, Add, Checkbox, gCHB1_action vCHB1 Checked%Ch1%, CheckBox
- Gui, Add, Checkbox, gCHB2_action vCHB2 Checked%Ch2%, CheckBox
- Gui, Add, Checkbox, gCHB3_action vCHB3 Checked%Ch3%, CheckBox
- Gui, Show, w300 h200, CheckBox to Ini Test
- return
- CHB1_action: ; Действие на нажатие чекбокса 1
- Gui, Submit, NoHide
- IniWrite, %CHB1%, %A_ScriptDir%\Config.ini, CheckBoxStatus, CheckBox1
- Return
- CHB2_action: ; Действие на нажатие чекбокса 2
- Gui, Submit, NoHide
- IniWrite, %CHB2%, %A_ScriptDir%\Config.ini, CheckBoxStatus, CheckBox2
- Return
- CHB3_action: ; Действие на нажатие чекбокса 3
- Gui, Submit, NoHide
- IniWrite, %CHB3%, %A_ScriptDir%\Config.ini, CheckBoxStatus, CheckBox3
- Return
- GuiClose:
- ExitApp
- return
Add Comment
Please, Sign In to add comment