Sign in to follow this  
Followers 0
FinalVersion

Ini Problems

4 posts in this topic

Hi, I have a decent understanding of coding so bare with me. Oh btw nice forums.

I'm trying to make a msgbox popup with info from a .ini file.

What i have so far.

$User = IniRead("\Config.ini", "Username", "Key", "Error")
$Pass = IniRead("\Config.ini", "Password", "Key", "Error")

Msgbox(0,"UserName", $User, 1)
Sleep(2000)
MsgBox(0,"PassWord", $Pass, 1)

This is the config.ini

Username=user goes here
Password=pass goes here

Any help is appreciated!

Share this post


Link to post
Share on other sites



Hi, I have a decent understanding of coding so bare with me. Oh btw nice forums.

I'm trying to make a msgbox popup with info from a .ini file.

What i have so far.

$User = IniRead("\Config.ini", "Username", "Key", "Error")
$Pass = IniRead("\Config.ini", "Password", "Key", "Error")

Msgbox(0,"UserName", $User, 1)
Sleep(2000)
MsgBox(0,"PassWord", $Pass, 1)

This is the config.ini...

Username=user goes here
Password=pass goes here

Any help is appreciated!

You need a section name (more info here).

In your .ini file:

[info]

Username=user goes here

Password=pass goes here

In the script...

$User = IniRead("\Config.ini", "info", "Username", "Error")

$Pass = IniRead("\Config.ini", "info", "Password", "Error")

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

what are you asking help for?

EDIT

damn.. lol ^ i didnt even see that :D

Edited by CodyBarrett

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