If option 1 and color 1 is selected: do this. If option 2 and color 2 is selected: do this. If option 1 and color2 is selected.. and so on. I got no idea what the gDropdownLit and vDropdownlist is for, I copy pasted from the help and from online Resources. My code is not working. What am I doing wrong?
Code: Select all
Gui, 1: font, s10 , Verdana
Gui, 1: Add, DropDownList, gDropDownList vDropDownList R2 choose1, Option 1|Option2
Gui, 1: Add, DropDownList, gDropDownList vDropDownList R2 choose1, Color1|Color2
Gui, 1:Add, text,, Text1
Gui, 1:Add, edit, vText1
Gui, 1:Add, text,, Text2
Gui, 1:Add, edit, vText2
Gui, 1:Add, button, hidden default gSubmit
Return
DropDownList:
GuiControlGet, DropDownList
if dropdownlist = Option 1 && Color1
{
Submit:
Gui, 1:Submit
SendInput, You have to tell %text1% about %text2%
goto end
}
if dropdownlist = Option2 && Color 2
{
MsgBox, You picked option2 and color 2
goto end
}
#j::
Gui 1: show,, DropDownGui
return
end: