Jump to content
Sign in to follow this  
Rogue5099

"Quotations" in Iniwrite

Recommended Posts

Rogue5099

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)

Share this post


Link to post
Share on other sites
monoceres

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!

Share this post


Link to post
Share on other sites
Pain

"if you want ""quotationmark"" in here do like I just did"

Edited by Pain

Share this post


Link to post
Share on other sites
Rogue5099

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"

Share this post


Link to post
Share on other sites
Pain

read my previous post, try with ""$Username""

Share this post


Link to post
Share on other sites
monoceres

Ok so this?

$Username = InputBox("Setup", "Enter your User Name.", "")
IniWrite(@ScriptDir & "\config\ini\Load.ini", "Settings", "Username", '"'&$Username&'"')

:)


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

Share this post


Link to post
Share on other sites
Skrip

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]

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  

×