Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted (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 by ph34r
Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...