Bounda Posted August 18, 2006 Share Posted August 18, 2006 Iunno, it was kinda a scrap so w/e, use the _WriteIni function to create an ini in the correct format for the update function, which updates the list with the lines in the ini. remember to always include file.au3. I created this for a project that i was working on that i abandoned. Func _UpdateList($list, $ini, $inisection) Local $line Local $lines Local $data $lines = _FileCountLines($ini) $line = $lines -1 Do $data = IniRead($ini, $inisection, $line, "1") $line = $line - 1 GuiCtrlSetData($list, $data) Until $line = 1 EndFunc Func _WriteIni($name, $section, $dataname) FileOpen($name, 0);create the ini if it doesnt exist. FileClose($name) Local $max $max = _FileCountLines($name) $max = $max - 1 iniwrite($name, $section, $max, $dataname) EndFunc CS:S Aimbot - List From INI Funcs Link to comment Share on other sites More sharing options...
MHz Posted August 19, 2006 Share Posted August 19, 2006 (edited) GuiCtrlSetData($list, $data)So this would be used especially for a Gui script? FileOpen($name, 0);create the ini if it doesnt exist. FileClose($name)Looks like you did not get the handle from FileOpen to FileClose the file. Too be honest after looking at the logic of them, were these INIRead/INIWrite wrappers needed at all? Edit: Ok, see wrappers made for indexing $max, but that would only need a indexer line and the INI* line? Edited August 19, 2006 by MHz Link to comment Share on other sites More sharing options...
Bounda Posted August 19, 2006 Author Share Posted August 19, 2006 iunno i made it for some project i was makin and didnt know any other way of makin it work right so i made these =P, i know their just useless scraps but w/e, i had to list files in a list inside of a gui, so i could open and close them and edit and such. CS:S Aimbot - List From INI Funcs 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