para Posted November 24, 2004 Share Posted November 24, 2004 I am attempting to make a program that will automatically change the password for a game. I have everything done, the only problem is time. I can easily just make... $ActiveAccount1 = IniRead ( $SettingsFile, 'Account', 'AccountName1', "ERROR" ) $ActivePassword1 = IniRead ( $SettingsFile, 'Account', 'Password1', "ERROR" ) $ActiveAccount2 = IniRead ( $SettingsFile, 'Account', 'AccountName2', "ERROR" ) $ActivePassword2 = IniRead ( $SettingsFile, 'Account', 'Password2', "ERROR" ) And the INI say... AccountName1= Password1= AccountName2= Password2= That would take alot of time to enter all the accounts especially if they are in bulk, which is of course why I am writing this. I want to know how to make it so I can enter a list that is in this format... account1:password1 account2:password2 account3:password3 so it would be like... para:gemer lota:god pigment:poop So that list is the list of accounts and there current password. I already have the function for the password they all will be changed to. How would I make it so I could enter a format like that (refer to para:gemer part) into the ini so its fast and simple. I need to know what to put in the source... Thanks alot for anyone who can help me, please ask if you need anymore details, thanks! Link to comment Share on other sites More sharing options...
ezzetabi Posted November 24, 2004 Share Posted November 24, 2004 FileReadLine() + StringSplit() + a little knowledge about arrays. Link to comment Share on other sites More sharing options...
para Posted November 25, 2004 Author Share Posted November 25, 2004 FileReadLine() + StringSplit() + a little knowledge about arrays.<{POST_SNAPBACK}>so?? what do i do? lol... =[ Link to comment Share on other sites More sharing options...
db26 Posted November 25, 2004 Share Posted November 25, 2004 I'm not really understandig how this will save time. Just write a simple script in another language (I say that because AutoIt isn't exactly the best language for it.) that will print out a list of Account0= Password0= Account1= Password1= ... It's about a 3 line program if you write it in Python, or another relatively simple language. It just seems like the simpler option in my opinion. But I guess you feel differently... 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