Help with Radio buttons
Posted: 05 Oct 2016, 10:12
Hey,
Ive got this script and I I want to have msgbox when I choose "Add" (alone!) and then click on "Go".
however, I can get it working on the all other radio buttons, expect when "Add" button is chosen alone.
by clicking it now its just doing nothing!
Thanks in advance!
Ive got this script and I I want to have msgbox when I choose "Add" (alone!) and then click on "Go".
however, I can get it working on the all other radio buttons, expect when "Add" button is chosen alone.
by clicking it now its just doing nothing!
Thanks in advance!
Code: Select all
#SingleInstance force
#NoEnv
SetWorkingDir %A_ScriptDir%
Gui Show, w363 h367, WSP Deployment
Gui Add, GroupBox, x22 y73 w110 h65, What to do?
Gui Add, Radio, x32 y90 w90 h20 vRadio1 gSub1, Add
Gui Add, Radio, x32 y110 w90 h20 vRadio2 gSub2, Update
Gui Add, GroupBox, x142 y73 w120 h65 ,Deploy To:
Gui Add, Radio, x152 y90 w100 h20 vCheck1 Disabled, Web Application
Gui Add, Radio, x152 y110 w105 h20 vCheck2 Disabled, Globally Deployed
Gui Add, Button, x280 y160 w65 h45 vCheck4 gAdd Disabled, Go
return
Sub1:
GuiControlGet, Radio1
If Radio1 = 1
GuiControl, Enable, Check1
GuiControl, Enable, Check2
GuiControl, Enable, Check4
Return
Sub2:
GuiControlGet, Radio2
If Radio2 = 1
GuiControl, , Check3
GuiControl, Disable, sub1
GuiControl, Disable, Check1
GuiControl, Disable, Check2
GuiControl, Enable, Check4
Return
Add:
Gui, Submit ,NoHide
if Radio2 = 1
{
msgbox, you chose Update
return
}
else
if Check1 = 1
{
msgbox, you chose Web Application
return
}
else
if Check2 = 1
{
msgbox, you chose Globally Deployed
return
}