LBEX - some functions for ListBoxes

Post your working scripts, libraries and tools for AHK v1.1 and older
just me
Posts: 9449
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: LBEX - some functions for ListBoxes

19 Aug 2020, 04:35

Hi A_AhkUser

thanks for reporting. It's a typical copy&paste error and will be corrected soon.
User avatar
iilabs
Posts: 296
Joined: 07 Jun 2020, 16:57

Re: LBEX - some functions for ListBoxes

15 May 2021, 13:42

Joe Glines wrote:
14 Jan 2016, 21:42
Nice functionality... I don't do much with ListBoxes so I wrote a short example playing with a few of the functions. I don't normally use a handle so I thought I'd go ahead and post my simple example here for others that aren't used to it either.

Code: Select all

Gui, Add, ListBox, +HwndHLB vColorChoice h100 w100, Green||Blue
gui, show 
Count:=LBEX_GetCount(HLB)
Sleep, 1000
LBEX_Add(HLB, "Added to " count " items")
    Sleep, 1000
LBEX_DeleteAll(HLB)
Sleep, 1000
LBEX_Add(HLB, "Added this back")
Thank you for this example!
c7aesa7r
Posts: 209
Joined: 02 Jun 2016, 21:09

Re: LBEX - some functions for ListBoxes

20 Nov 2021, 11:01

@just me
Im using this code to get the text of a specific listbox item, would like to ask if you know how to also get this item lparam

Code: Select all

SendMessage, 0x018A, %Item%, 0, , ahk_id %HWND% ; LB_GETTEXTLEN
VarSetCapacity(Txt, ErrorLevel << !!A_IsUnicode, 0)
 SendMessage, 0x0189, %Item%, % &Txt, , ahk_id %HWND% ; LB_GETTEXT
VarSetCapacity(Txt, -1)
just me
Posts: 9449
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: LBEX - some functions for ListBoxes

21 Nov 2021, 04:25

Code: Select all

LBEX_GetData()
if it has data.

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: Chunjee and 99 guests