Jump to content

"Quotations" in Iniwrite


Recommended Posts

This is what I have it writes in the .ini what they type but I need it in "$Username". I have searched forum and looked through help but was unable to find anything. Sorry if this is a newbish question.

$Username = InputBox("Setup", "Enter your User Name.", "")
IniWrite(@ScriptDir & "config\ini\Load.ini", "Settings", "Username", $Username)
Link to comment
Share on other sites

That won't write an ini at all (unless you have it in a drive root), @ScriptDir does not have ending '\' so you need to add it yourself (@ScriptDir & "\config\ini\Load.ini").

:)

Edited by monoceres

Broken link? PM me and I'll send you the file!

Link to comment
Share on other sites

Ya I had that problem already. Sorry that was an old script I copied wrong 1.

$Username = InputBox("Setup", "Enter your User Name.", "")

IniWrite(@ScriptDir & "\config\ini\Load.ini", "Settings", "Username", $Username)

I have it writing in the .ini but I just need it to be:

[settings]

Username="Whatever came from inputbox"

Link to comment
Share on other sites

Actually, you need three " ".

MsgBox(0, "", """test""")

That works, it returns "test".

EDIT: Or do what mono said.

Edited by Firestorm

[left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]

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...