Jump to content

Ini Problems


Recommended Posts

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!

Link to comment
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")

Link to comment
Share on other sites

what are you asking help for?

EDIT

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

Edited by CodyBarrett
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...