gottygolly Posted April 9, 2014 Share Posted April 9, 2014 Is there any way to make this send data to the list and not have it set in alphabetical and numerical order? It's really messing with the purpose of the project. #include<misc.au3> #include<guiconstants.au3> #include<guilistbox.au3> #include<windowsconstants.au3> $gui = GUICreate("Example",300,200) $input = GUICtrlCreateInput("",0,0,100,25) $list = GUICtrlCreateList("",100,0,200,200) $send = GUICtrlCreateButton("Send to list",0,25,100,25) $input_2 = GUICtrlCreateInput("",0,125,100,50,$ES_MULTILINE) $start = GUICtrlCreateButton("Start",0,50,100,25) GUISetState() while 1 $msg = GUIGetMsg(1) Switch $msg[1] Case $gui Switch $msg[0] Case -3 Exit Case $send $read_input = GUICtrlRead($input) GUICtrlSetData($list,$read_input) GUICtrlSetData($input,"") Case $start For $i = 1 to _GUICtrlListBox_GetCount($list) $count = _GUICtrlListBox_GetCount($list) GUICtrlSetData($input_2,GUICtrlRead($input_2)&" "&_GUICtrlListBox_GetText($list,$i-1)) Next If _IsPressed("25") Then Exit EndSwitch EndSwitch WEnd Thanks. Link to comment Share on other sites More sharing options...
Solution jguinch Posted April 9, 2014 Solution Share Posted April 9, 2014 Use this : $list = GUICtrlCreateList("",100,0,200,200, BitOr($WS_BORDER, $WS_VSCROLL) ) gottygolly 1 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
gottygolly Posted April 9, 2014 Author Share Posted April 9, 2014 Works great Thanks jguinch. 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