I tried messing with "GuiControl, +AltSubmit" but quite frankly didn't really get what I was doing there...
Thanks in advance
Code: Select all
#Persistent
Gui, Add, DropDownList, vColorChoice, Black|White|Red|Green|Blue|
Gui, Add, Button, Default w80, OK
Gui, Add, Button, w80, Cancel
Gui, Show
return
GuiClose:
ExitApp
ButtonCancel:
ExitApp
ButtonOK:
Gui, Submit
Gui, Hide
If (ColorChoice = Blue)
{
MsgBox, Blue
}
If (ColorChoice = Red)
{
MsgBox, Red
}
ExitApp