ph34r Posted July 13, 2008 Share Posted July 13, 2008 Hey im trying to configure the command INIREAD To read accounts.ini for user's to input their login. $var = IniRead(@ProgramFilesDir & "\warbot\", "accounts", "WR-Account:", "AccountName") $var = IniRead(@ProgramFilesDir & "\warbot\", "accounts", "WR-Password:", "Password") MsgBox(4096, "Result", $var) thats my code heres my ini ; Here you can setup your account info for WarBot to read. ; Do not change the WR-Account or pass they are specifically specified WR-Account: ph34r WR-Password: couchpatato ;here is an example ;Wr-Account: Ph34r ;Wr-Account: hobosrulz ;Then warbot will log me in using those details. ;NEVER GIVE ACCOUNTS.INI to anyone! No thats not my real pass muttley please get back to me. Thanks Link to comment Share on other sites More sharing options...
pete1234 Posted July 13, 2008 Share Posted July 13, 2008 You need to change one of the $var's so they're not the same; IniRead needs to point to a file, not a path; and your INI needs to be structured correctly with sections, keys, and values. Look at the help file for good examples. Link to comment Share on other sites More sharing options...
ph34r Posted July 13, 2008 Author Share Posted July 13, 2008 (edited) KK does this look right $Account = IniRead ( "accounts.ini", "account", "WarrockAccount", "No account info found" ) $password = IniRead ( "accounts.ini", "pass", "WarrockPassword", "No account info found" ) MsgBox(4096, "Result", $account) MsgBox(4096, "Result", $password) ; Here you can setup your account info for WarBot to read. ; Do not change the WR-Account or pass they are specifically specified ; here is an example ; Wr-Account: Ph34r ; Wr-Account: hobosrulz ; Then warbot will log me in using those details. ; NEVER GIVE ACCOUNTS.INI to anyone! [Account] WarrockAccount=Tupac [Pass] WarrockPassword=isalive? YEP! worked ty guys but how do i use this now if i wanna login Would i do Send($account) Send($password) Edited July 13, 2008 by ph34r Link to comment Share on other sites More sharing options...
TerarinKerowyn Posted July 14, 2008 Share Posted July 14, 2008 lookup _StringEncrypt for the $password as you don't keep put password in plain text out on a file Contact via MSN: [email=terarink_msn@hotmail.com]terarink_msn@hotmail.com[/email], yahoo: terarink_yah Link to comment Share on other sites More sharing options...
TerarinKerowyn Posted July 14, 2008 Share Posted July 14, 2008 Yes at the login window you would do that more like Send($account & "{TAB}" & $password) just make sure they are done that way Contact via MSN: [email=terarink_msn@hotmail.com]terarink_msn@hotmail.com[/email], yahoo: terarink_yah 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