AutoHotkey Community

It is currently May 27th, 2012, 12:22 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: December 3rd, 2008, 7:29 pm 
Offline

Joined: October 1st, 2005, 2:09 am
Posts: 130
Location: Canada
Hello,

What I'd like to do is something similar to the way various websites search boxes behave. That is, I have a text box, and after entering some information into it (say 5+ characters) it should pop down a list with the matches it is finding from [wherever]. I just don't know if this would be possible in AHK, might need to use a seperate DDL control?

Ideally it would just be 1 control that you could type into, and then it would behave like a DDL or so.

So say List := "Number One|Number Two|Number Three|Letter A|Letter B|Letter C" and you type in "number" into your text box, the DDL would contain "Number One|Number Two|Number Three" to click on and fill into the text box. I'm fairly certain I could work something out with seperate controls (1 text box and 1 ddl) but if anyone has an idea for a single-control version, I think it'd be VERY useful. :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2008, 8:05 pm 
Offline

Joined: July 18th, 2006, 12:18 pm
Posts: 403
2 controls like you say would be easy.

with one texbox thou im not sure how you would have a box drop down there is probarly a way, ill take a look a little later after ive had tea and get back to you.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2008, 11:22 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
See my answer here for some pointers for already posted scripts
http://www.autohotkey.com/forum/topic38206.html

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2008, 10:15 am 
Offline

Joined: October 1st, 2005, 2:09 am
Posts: 130
Location: Canada
Hrm, I seem to have forgotten about the ComboBox control type, which allows free form text to be entered as well as a list... this may prove useful. :D

Edit: Bah, when you do a GuiControl,, on a ComboBox, it clears the text you have typed into it. =/ I worked around this by GuiControlling the Text back to what it was and Send {End} but this is both lame and crap. Almost had it tho kind of. Still gotta click the arrow to see your matches, but at least it's only showing the found matches. Final solution I think will just be to have all (8000+) lines (matches) in the combo box, and users can just type the first few letters and click the arrow to find the match. Cause the combo box will at least start on the closest match you've typed.


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: chaosad, Exabot [Bot], jrav and 16 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