#SingleInstance, Force
IniRead, Radio1, Settings.ini, Settings, Radio1
IniRead, Radio2, Settings.ini, Settings, Radio2
IniRead, Check1, Settings.ini, Settings, Check1
IniRead, Check2, Settings.ini, Settings, Check2
Gui, Add, CheckBox, x16 y17 w100 h30 vCheck1 Checked%Check1%, CheckBox1
Gui, Add, CheckBox, x16 y57 w100 h30 vCheck2 Checked%Check2%, CheckBox2
Gui, Add, Radio, x136 y17 w100 h30 vRadio1 Checked%Radio1%, Radio1
Gui, Add, Radio, x136 y57 w100 h30 vRadio2 Checked%Radio2%, Radio2
Gui, Add, Button, x6 y107 w50 h30 gPcheck, Ckeck
Gui, Add, Button, x70 y107 w50 h30 gPradio, Rhadio
Gui, Add, Button, x136 y107 w50 h30 gSaveData, save
; Generated using SmartGUI Creator for SciTE
Gui, Show, w244 h141, Proverka
Return
SaveData:
Gui, Submit, NoHide
IniWrite, %Radio1%, Settings.ini, Settings, Radio1
IniWrite, %Radio2%, Settings.ini, Settings, Radio2
IniWrite, %Check1%, Settings.ini, Settings, Check1
IniWrite, %Check2%, Settings.ini, Settings, Check2
MsgBox, Все данные сохранены.
return
Pcheck:
Gui, Submit, NoHide
if (Check1==1)
{
MsgBox, Вы выбрали чекбокс 1
}
Else if (Check2==1)
{
MsgBox, Вы выбрали чекбокс 2
}
Return
Pradio:
Gui, Submit, NoHide
if (Radio1==1)
{
MsgBox, Вы выбрали радио1
}
else if (Radio2==1)
{
MsgBox, Вы выбрали радио2
}
return
GuiClose:
ExitApp
return