MRXTO09 Posted January 22, 2014 Share Posted January 22, 2014 (edited) I've try this ... Global $listview = GUICtrlCreateListView("Username|Scans|Status", 0, 87, 550, 110, $LVS_SHOWSELALWAYS) ... Func __refresh() $result = __HttpGet($dominio1&"/room.php", "p="&$password&"&u="&$username&"&r="&$room) MsgBox(0,"",$result) $explode = _StringExplode($result, ",") _GUICtrlListView_BeginUpdate($listview) For $i = 0 to UBound($explode) - 2 _GUICtrlListView_AddItem($listview,$explode[$i]) Next _GUICtrlListView_EndUpdate($listview) Endfunc OR Func __refersh() _GUICtrlListView_DeleteAllItems($listview) $result = __HttpGet($dominio1&"/room.php", "p="&$password&"&u="&$username&"&r="&$room) $explode = _StringExplode($result, ",") For $i = 0 to UBound($explode) - 2 _GUICtrlListView_AddItem($listview,$explode[$i]) Next EndFunc but dosen't work please help me Edited January 22, 2014 by MRXTO09 Link to comment Share on other sites More sharing options...
MRXTO09 Posted January 24, 2014 Author Share Posted January 24, 2014 up please Link to comment Share on other sites More sharing options...
dcat127 Posted January 24, 2014 Share Posted January 24, 2014 Can you post your complete script? Also what does not work? Be more specific. Link to comment Share on other sites More sharing options...
dcat127 Posted January 24, 2014 Share Posted January 24, 2014 Your __Httpget function has some kind of problem. As soon as you call that it locks up. If I comment out those lines it will update the listview. Also the refresh button is not enabled for some reason...sorry don't have time to figure that out right now. Func __refresh() consolewrite ("refresh") _GUICtrlListView_DeleteAllItems(GUICtrlGetHandle($listview)) ;~ $result = __HttpGet($dominio1&"/room.php", "p="&$password&"&u="&$username&"&r="&$room) ;~ $explode = _StringExplode($result, ",") ;~ For $i = 0 to UBound($explode) - 2 ;~ GUICtrlCreateListViewItem($explode[$i],$listview) ;~ Next GUICtrlCreateListViewItem("test|4|test",$listview) Endfunc Link to comment Share on other sites More sharing options...
MRXTO09 Posted January 24, 2014 Author Share Posted January 24, 2014 (edited) resolved was GUICtrlSetDefColor(0xFFFFFF) and i dind see the text XD Edited January 24, 2014 by MRXTO09 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