Jump to content

.INI Read help.


Recommended Posts

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

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

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...