melf Posted May 7, 2006 Share Posted May 7, 2006 OK so im fairly new to autoit and even with the help me file im still having problems to grasp the principles..but im learning i want to script a GUI that loads up a txt file , makes a combo list box at the top with a pull down in wich are all the account names ( all info before the first $delim..all items in one line are seperated by $delims anyway..) and when you choose one from the list loads up all the info in the right editbox ( $name , $adress , etc..) you can then edit the boxes you want and save back to .txt at the right line chosen ( if its account on line 9 it overwrites the line 9.. So..up to now this is what i understood of autoit GuiCreate("Accounts and Info", 640, 480,) $delim=',' $file = FileOpen("accounts.txt", 0) $line = FileReadLine(($file) , 1) $line1 = FileReadLine(($file) , 2) $line2 = FileReadLine(($file) , 3) $line3 = FileReadLine(($file) , 4) $line4 = FileReadLine(($file) , 5) $line5 = FileReadLine(($file) , 6) this works but loads the entire line..i only want to load whats between the start of the line and the first $delim GUICtrlCreateCombo ("accounts", 10,10) ; create first item GUICtrlSetData(-1,"$line1|$line2","$line3") ; add other item snd set a new default i know this dosent work at all..but its all i came up with.. if anyone has a good tutorial on the subject or could help me out on this i really would appreciate it ... not much tutorial sites on the subject but i learn pretty fast Any help would be greatly appreciated.. Thx Melf Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted May 7, 2006 Share Posted May 7, 2006 im going to bed but one quick suggestion, use a INI file Link to comment Share on other sites More sharing options...
melf Posted May 7, 2006 Author Share Posted May 7, 2006 (edited) inread and iniwrite work by section right? but i want all the text to be on 1 line with "," seperating the info.. :/ i need one file that holds all the accounts. Edited May 7, 2006 by melf 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