 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
mAdDoG
Joined: 29 Dec 2004 Posts: 62
|
Posted: Fri Mar 11, 2005 2:54 am Post subject: auto-submit after dropdown? |
|
|
After trying for a couple hours now, I must ask-
Is there a way to submit, automatically, after a dropdown box has been selected? _________________ -buttons, buttons,...
I like to push all the buttons!!! |
|
| Back to top |
|
 |
toralf (as guest) Guest
|
Posted: Fri Mar 11, 2005 6:29 am Post subject: |
|
|
Have you tried to give the dropdownlist a g-Lable?
In that subroutine you can use Gui,Submit.
Does this help you?
Otherwise post please explain a little bit more in detail and maybe post some code of yours, so we can have a look at it. |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5068 Location: imaginationland
|
Posted: Fri Mar 11, 2005 11:46 am Post subject: |
|
|
Like toralf said: | Code: | Gui, Add, DropDownList, gCaseSelected ...
Return
CaseSelected:
Gui, Submit
... |
_________________
RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
mAdDoG
Joined: 29 Dec 2004 Posts: 62
|
Posted: Sat Mar 12, 2005 12:00 am Post subject: |
|
|
I get it, thanks guys.
That is very useful.
I can activate my subs this way.
But, how do you retain the variable selected afterward?
| Code: | Gui, Add, DropDownList, gList , 1|2|3
Gui, Show
Return
List:
Gui, Submit
MsgBox, %List% ;(...?...)
return
GuiClose:
ExitApp |
_________________ -buttons, buttons,...
I like to push all the buttons!!! |
|
| Back to top |
|
 |
mAdDoG
Joined: 29 Dec 2004 Posts: 62
|
Posted: Sat Mar 12, 2005 12:10 am Post subject: |
|
|
Hey, I got it!!!
| Code: | Gui, Add, DropDownList, gList vList, 1|2|3 ;(vList & gList, together)
Gui, Add, Button, ,Ok
Gui, Show
Return
List:
Gui, Submit, NoHide
MsgBox, %List% ;(...?...)
return
GuiClose:
ExitApp |
_________________ -buttons, buttons,...
I like to push all the buttons!!! |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|