kjcdude Posted November 25, 2007 Share Posted November 25, 2007 posting in general help since gui forum isn't that popular The goal of this script is to read a single ini file, that contains information per computer, sorted by application, then output the file into an easy to read gui. At this point, nothing further needs to be done. Right now i have the pc number created by hand from guicreatelistview, then each application (inireadsectionames) listed in colum 1, then a 1 or 0 next to each application under each computer number, but as you can see it's pretty sloppy and only outputs the applications correctly. #include <GUIConstants.au3> #include <Array.au3> GUICreate("listview items",220,250, 100,200,-1,$WS_EX_ACCEPTFILES) $file = "O:\Log\Copy of 11-24-07 8.ini" $ssection = IniReadSectionNames($file) ;~ $list = IniRead($file, $ssection) $v_Val1 = 001 $v_Val200 = 200 $array1 = _ArrayCreate($v_Val1, $v_Val200) for $t = 1 to $array1[0] $list = IniRead($file, $ssection, $array1[$t], "None") next $listview = GUICtrlCreateListView ("APP|001|002|003|004",10,10,200,150);,$LVS_SORTDESCENDING) GUICtrlSetState(-1,$GUI_DROPACCEPTED) ; to allow drag and dropping GUISetState() For $i = 1 To $ssection[0] $item = GUICtrlCreateListViewItem($ssection[$i] & "|",$listview) next For $x = 1 To $list[0] GUICtrlSetData($item,"|" & $list[$x]) Next Do $msg = GUIGetMsg () Select Case $msg = $listview MsgBox(0,"listview", "clicked="& GUICtrlGetState($listview),2) EndSelect Until $msg = $GUI_EVENT_CLOSE part of the ini file [Modified] When=11/24/2007 - 17:28:27 [AOE3] 001=0 003=1 004=1 005=0 006=0 007=0 [BF2] 001=1 003=1 004=1 005=1 006=1 [BFMEII] 068=1 069=1 070=1 071=1 072=1 073=1 074=1 [BFME_ROTWK] 001=1 003=1 004=1 005=1 006=1 [COD4] 001=1 003=1 004=1 005=1 006=1 007=1 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