AutoHotkey Community

It is currently May 27th, 2012, 3:45 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: November 6th, 2005, 12:49 am 
Offline

Joined: June 10th, 2005, 1:12 am
Posts: 5
I am going to use this script next week for work travelling around the country changing selcall codes in radios. (There is more that I have not shown - changing numbers in 4 pages of a specific application, which I have already worked out how to do)
Have tried to figure out the code to auto-update the inputs into the combobox, but it would be quicker asking for help as I only have today- leaving tomorrow.
I would appreciate someones help to fill in the missing code please

; Generated using SmartGUI Creator 3.5.1

Gui, Add, ComboBox, x6 y4 w80 h20 vAreacode,
Gui, Add, ComboBox, x106 y4 w60 h20 vSelcall,
Gui, Add, Button, x189 y4 w60 h21,Go
Gui, Show, x270 y110 h31 w253, 8030 Selcall
Return
ButtonGo:
Gui, submit, NoHide
Return
GuiClose:
ExitApp


Thanks
Clive


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 6th, 2005, 11:11 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Hi cmkw,

You could put the data directly behind the GUI command, if it is already available when you Build the GUI:
Code:
Data = first|second|third|fourth
Gui, Add, ComboBox, x6 y4 w80 h20 vAreacode, %Data%


or you could use GuiControl later in the code to add data to the control
Code:
GuiControl, , Areacode, Fifth|Sixth


See Gui and GuiControl in the manual for more details.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 6th, 2005, 1:32 pm 
Offline

Joined: June 10th, 2005, 1:12 am
Posts: 5
thanks toralf,
what I really wanted was if I typed in "seventh" in the combobox, then how do you save that in the combobox?

clive


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 6th, 2005, 9:39 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
When you sumbit the Gui, you could check if the var form the combo is in the list of the combo, if not, you can add it to the list and assign the list to the combo again.

_________________
Ciao
toralf
Image


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], bobbysoon, Yahoo [Bot] and 20 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