over21
Joined: 09 Mar 2010 Posts: 5
|
Posted: Tue Mar 09, 2010 11:53 am Post subject: Can't restrict DropDownList to selected option |
|
|
I'm trying to make a GUI to access a site a specific key combination (either Alt+C, or Ctrl+Alt+C, or Ctrl+Shift+C). The problem is that all the combinations work, always; it doesn't matter which one I've selected.
| Code: | Gui, Add, DropDownList, x1 y1 w170 Drop, Alt+C||Ctrl+Alt+C|Ctrl+Shift+C
Gui, Show, x485 y345 h58 w308, Charazay HotKey
Return
!c::
if (DropDownList = "Alt+C")
{
IfWinExist, Charazay Basketball Manager - Opera
WinActivate
else
Run http://www.charazay.com
return
}
^!c::
if (DropDownList = "Ctrl+Alt+C")
{
IfWinExist, Charazay Basketball Manager - Opera
WinActivate
else
Run http://www.charazay.com
return
}
^+c::
if (DropDownList = "Ctrl+Shift+C")
{
IfWinExist, Charazay Basketball Manager - Opera
WinActivate
else
Run http://www.charazay.com
return
}
GuiClose:
ExitApp
return |
Help! |
|