Gui Posted December 6, 2009 Posted December 6, 2009 Aye guys, all I want to do is get all the Lines of Text from a listview, and then have all the Lines of Texts together, seperated by commas. Is this possible?
Fire Posted December 7, 2009 Posted December 7, 2009 (edited) #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form=Form1.kxf\Form1.kxf $Form1 = GUICreate("Form1", 478, 261, 502, 157) $a ="Flying" & @CRLF &"amongst" & @CRLF & "stars" & @CRLF & "4 ever." $List1 = GUICtrlCreateList($a, 120, 40, 225, 97) $Button1 = GUICtrlCreateButton("Button1", 120, 184, 65, 25, 0) $Button2 = GUICtrlCreateButton("Button2", 288, 184, 49, 25, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### $b = StringReplace($a, @crlf, ",") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 GUICtrlSetData($List1,$b) EndSwitch WEnd Edited December 7, 2009 by Sh3llC043r [size="5"] [/size]
PsaltyDS Posted December 7, 2009 Posted December 7, 2009 Aye guys, all I want to do is get all the Lines of Text from a listview, and then have all the Lines of Texts together, seperated by commas. Is this possible?You can use ControlListView() to "GetItemCount" and "GetSubItemCount" then loop through getting text with "GetText".Or, with GuiListView.au3 UDF, you could do _GUICtrlListView_GetItemTextString() on each item (see the help file example). Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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