Jump to content
Sign in to follow this  
Unc3nZureD

Newbie question :(

Recommended Posts

Unc3nZureD

Hi i'm working on a Simple AutoLogin Program But I get stucked in the beginning. I've did the ini and I want to read it. I know there's the Iniread(...) command but how can i use the Filename + the @ScriptDir func? In my case:

$1 = IniRead(@ScriptDir "\Logindatas.ini", "Filling infos", "Username", "No Username")
MsgBox(4096, "Result", $1)

How can i solve it? There's any problem with the FIle path but I doN'T know how to do it well ;)

(I uploaded the ini File)

Thanks

Edited by Unc3nZureD

Share this post


Link to post
Share on other sites
MrMitchell

Use an "&" symbol after @ScriptDir

Share this post


Link to post
Share on other sites
Unc3nZureD

$1 = IniRead(@ScriptDir & "\Logindatas.ini", "Filling infos", "Username", "No Username")

oooh, thanks i try

Share this post


Link to post
Share on other sites
Unc3nZureD

oooh, thanks i try

Dont Know why it say No username. (cant read the data)

and i forget the ini ;)

[can't upload so the simple contain of it:]

[Filling infos]

Username=The Name

Password=The Password

Edited by Unc3nZureD

Share this post


Link to post
Share on other sites
MrMitchell

Not sure...try changing IniRead to IniWrite as a test and see if the INI file is changed?

And as good practice, and maybe even might be a requirement, remove the space from [Filling Infos] and just make it [FillingInfos] or something without spaces.

Share this post


Link to post
Share on other sites
Unc3nZureD

I Found The problem. Can't Put Space between two word into the "section" now it works.

Edit: I put simple Infos ;) Thanks

Edited by Unc3nZureD

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.