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: 143
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: 333
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.

Return to “Scripts and Functions”

Who is online

Users browsing this forum: ArdaS and 13 guests