Hi A_AhkUser
thanks for reporting. It's a typical copy&paste error and will be corrected soon.
LBEX - some functions for ListBoxes
Re: LBEX - some functions for ListBoxes
Thank you for this example!Joe Glines wrote: ↑14 Jan 2016, 21:42Nice 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")
Re: LBEX - some functions for ListBoxes
@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
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)
Re: LBEX - some functions for ListBoxes
Code: Select all
LBEX_GetData()
Return to “Scripts and Functions (v1)”
Who is online
Users browsing this forum: Wala27 and 78 guests