Unc3nZureD Posted August 16, 2010 Posted August 16, 2010 (edited) 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 August 16, 2010 by Unc3nZureD
JohnOne Posted August 16, 2010 Posted August 16, 2010 $1 = IniRead(@ScriptDir & "\Logindatas.ini", "Filling infos", "Username", "No Username") AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Unc3nZureD Posted August 16, 2010 Author Posted August 16, 2010 $1 = IniRead(@ScriptDir & "\Logindatas.ini", "Filling infos", "Username", "No Username")oooh, thanks i try
Unc3nZureD Posted August 16, 2010 Author Posted August 16, 2010 (edited) 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 August 16, 2010 by Unc3nZureD
MrMitchell Posted August 16, 2010 Posted August 16, 2010 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.
Unc3nZureD Posted August 16, 2010 Author Posted August 16, 2010 (edited) I Found The problem. Can't Put Space between two word into the "section" now it works. Edit: I put simple Infos Thanks Edited August 16, 2010 by Unc3nZureD
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