CbAutoComplete - Auto-completes typed values in a ComboBox

Post your working scripts, libraries and tools
User avatar
Pulover
Posts: 366
Joined: 29 Sep 2013, 19:51
Location: Brazil
Contact:

CbAutoComplete - Auto-completes typed values in a ComboBox

16 Mar 2016, 15:34

I have found a few scripts out there to accomplish this task, but all of them had some bug. So I decided to make my own and share it here.

Code: [Select all] [Expand] [Download] (CbAutoComplete.ahk)GeSHi © Codebox Plus


I only wish there was a better way to detect when the user is deleting content. Checking key state of bs and del keys doesn't work with Right-Click > Delete or with simulated keystrokes. But I'm not going to try OnMessage either...

:arrow: Sources and examples on GitHub

Feedback and improvements are welcome.
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
guresicpark
Posts: 1
Joined: 01 Nov 2017, 07:40
GitHub: guresicpark

Re: CbAutoComplete - Auto-completes typed values in a ComboBox

01 Nov 2017, 07:43

Hey Pulover,
great stuff, thanks!
burque505
Posts: 492
Joined: 22 Jan 2017, 19:37

Re: CbAutoComplete - Auto-completes typed values in a ComboBox

01 Nov 2017, 20:03

Pulover, I can't believe I found this at the very moment I needed it. What a gift. Very nice indeed!
I was just about to try a ListBox and Sift, but this will certainly get me going faster.
Regards,
burque505
User avatar
Delta Pythagorean
Posts: 416
Joined: 13 Feb 2017, 13:44
GitHub: DelPyth
Location: Equestria

Re: CbAutoComplete - Auto-completes typed values in a ComboBox

02 Nov 2017, 07:05

If you want to detect if the user is deleting content, try checking the current string with the previous string that was captured.
five
Posts: 2
Joined: 31 Jan 2018, 16:00

Re: CbAutoComplete - Auto-completes typed values in a ComboBox

02 Feb 2018, 08:46

Great script. Once I've made my selection, how do I get the current selection into a variable that I can do something with. My source is a csv file.

Some sample code that I put online:
https://p.ahkscript.org/?p=6493c881

I realized after the fact that I had the sample csv backwards. It is actually computer name, ip address.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



And while I am asking questions. How hard would it be to change this code from search as you type to fuzzy search? Where you can type any part of the string and it would display the applicable results.
User avatar
SL5
Posts: 269
Joined: 12 May 2015, 02:10
GitHub: sl5net
Contact:

Re: CbAutoComplete - Auto-completes typed values in a ComboBox

28 Apr 2018, 11:27

five wrote:Great script. Once I've made my selection, how do I get the current selection into a variable that I can do something with. My source is a csv file.
...
And while I am asking questions. How hard would it be to change this code from search as you type to fuzzy search? Where you can type any part of the string and it would display the applicable results.

i dont know if this helps: https://autohotkey.com/boards/viewtopic ... 67#p215367

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 14 guests