AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

auto-submit after dropdown?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
mAdDoG



Joined: 29 Dec 2004
Posts: 62

PostPosted: Fri Mar 11, 2005 2:54 am    Post subject: auto-submit after dropdown? Reply with quote

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
View user's profile Send private message
toralf (as guest)
Guest





PostPosted: Fri Mar 11, 2005 6:29 am    Post subject: Reply with quote

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

PostPosted: Fri Mar 11, 2005 11:46 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
mAdDoG



Joined: 29 Dec 2004
Posts: 62

PostPosted: Sat Mar 12, 2005 12:00 am    Post subject: Reply with quote

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
View user's profile Send private message
mAdDoG



Joined: 29 Dec 2004
Posts: 62

PostPosted: Sat Mar 12, 2005 12:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group