Show name of checkbox button
Posted: 26 Oct 2016, 05:28
Hi,
I need something very simple,
what ever you choose "Msg1" or "Msg2" it will popup a msg with the name of the checkbox button.
For example:
If I choose "Msg2" and Click "OK",
I will get a msg with "Msg2". (coz is the name of the checkbox button)
what "variable" should I use ?
Thanks!
I need something very simple,
what ever you choose "Msg1" or "Msg2" it will popup a msg with the name of the checkbox button.
For example:
If I choose "Msg2" and Click "OK",
I will get a msg with "Msg2". (coz is the name of the checkbox button)
what "variable" should I use ?
Thanks!
Code: Select all
#SingleInstance force
#NoEnv
SetWorkingDir %A_ScriptDir%
Gui Add, CheckBox, x15 y18 w120 h23, Msg1
Gui Add, CheckBox, x16 y54 w120 h23, Msg2
Gui Add, Button, x128 y34 w75 h23, OK
Gui Show, w217 h97
Return
GuiEscape:
GuiClose:
ExitApp
; End of the GUI section