AutoHotkey Community

It is currently May 27th, 2012, 11:49 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: August 4th, 2010, 8:31 pm 
Offline

Joined: August 26th, 2007, 12:23 am
Posts: 50
Location: USA
Is there a way to select multiple combo selections based on clicking any combo box.

if i got to any combo box and select line3 of the drop down box then i would like all combo boxes to go to line 3.
not the word but the location.
so no matter what was types as options in the combo box i need all the same lines to get selected.



Code:
Gui, Add, Text, x6 y10 w100 h30 +Center, Text1
Gui, Add, ComboBox, x6 y40 w100 h200 , Line1|line2|line3|line4

Gui, Add, Text, x6 y70 w100 h30 +Center, Text3
Gui, Add, ComboBox, x6 y100 w100 h200 , Line1|line2|line3|line4

Gui, Add, Text, x126 y10 w100 h30 +Center, Text2
Gui, Add, ComboBox, x126 y40 w100 h200 , Line1|line2|line3|line4

Gui, Add, Text, x126 y70 w100 h30 +Center, Text4
Gui, Add, ComboBox, x126 y100 w100 h200 , Line1|line2|line3|line4

Gui, Show, x131 y91 h200 w248, New GUI Window
Return

GuiClose:
ExitApp

here is a sample code of 4 comboboxs

_________________
~ B r () n c ()


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 4th, 2010, 8:39 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Have it jump to a label, use altsubmit (see gui doc)
Quote:
GuiControl, Choose, ControlID, N: Sets the selection in a ListBox, DropDownList, ComboBox, or Tab control to be the Nth entry. N should be 1 for the first entry, 2 for the second, etc (if N is not an integer, the ChooseString method described below will be used instead). Unlike Control Choose, this sub-command will not trigger any g-label associated with the control unless N is preceded by a pipe character (even then, the g-label is triggered only when the new selection is different than the old one, at least for Tab controls). For example: GuiControl, Choose, MyListBox, |3.

http://www.autohotkey.com/docs/commands/GuiControl.htm

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, MSN [Bot] and 17 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group