Sign in to follow this  
Followers 0
ph34r

.INI Read help.

5 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#3 ·  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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0