Achilles Posted May 3, 2007 Share Posted May 3, 2007 This is only returning the first letter of each item on the list. Is this problem only for me or have other people had this? Note this is taken from the Helpfile so I'm guessing something is wrong with my computer... #include <GUIConstants.au3> #include <GuiList.au3> Opt ('MustDeclareVars', 1) Dim $msg, $ret Dim $listbox, $label GUICreate("ListBox Get Text Demo", 400, 250, -1, -1) $listbox = GUICtrlCreateList("", 125, 40, 180, 120) GUICtrlSetData($listbox, "test1|more testing|even more testing|demo|") $label = GUICtrlCreateLabel("Item #", 150, 210, 120) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $listbox $ret = _GUICtrlListGetText ($listbox, _GUICtrlListSelectedIndex ($listbox)) If ($ret == $LB_ERR) Then MsgBox(16, "Error", "Unknown error from _GUICtrlListGetText") Else GUICtrlSetData($label, "Item : " & $ret) EndIf EndSelect WEnd My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Toady Posted May 3, 2007 Share Posted May 3, 2007 It works for me.... hmm, try _Listbox_GetText($hWnd, $iIndex) from Auto3Lib. www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Valuater Posted May 3, 2007 Share Posted May 3, 2007 works fine for me beta 3.2.3.10.. and release Win Xp Sp2 8) Link to comment Share on other sites More sharing options...
Achilles Posted May 3, 2007 Author Share Posted May 3, 2007 Odd.. I reinstalled autoit (with the same version) and now it works... Anyways thanks for the help! My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now