Rogue5099 Posted May 4, 2008 Share Posted May 4, 2008 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) My projects: Inventory / Mp3 Inventory, Computer Stats Link to comment Share on other sites More sharing options...
monoceres Posted May 4, 2008 Share Posted May 4, 2008 (edited) 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 May 4, 2008 by monoceres Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Pain Posted May 4, 2008 Share Posted May 4, 2008 (edited) "if you want ""quotationmark"" in here do like I just did" Edited May 4, 2008 by Pain Link to comment Share on other sites More sharing options...
Rogue5099 Posted May 4, 2008 Author Share Posted May 4, 2008 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" My projects: Inventory / Mp3 Inventory, Computer Stats Link to comment Share on other sites More sharing options...
Pain Posted May 4, 2008 Share Posted May 4, 2008 read my previous post, try with ""$Username"" Link to comment Share on other sites More sharing options...
monoceres Posted May 4, 2008 Share Posted May 4, 2008 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! Link to comment Share on other sites More sharing options...
Skrip Posted May 4, 2008 Share Posted May 4, 2008 (edited) Actually, you need three " ". MsgBox(0, "", """test""") That works, it returns "test". EDIT: Or do what mono said. Edited May 4, 2008 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 More sharing options...
Rogue5099 Posted May 4, 2008 Author Share Posted May 4, 2008 Ok this worked: $Username = '"' & InputBox("Setup", "Enter your User Name.", "") & '"' IniWrite(@ScriptDir & "\config\ini\Load.ini", "Settings", "Username", $Username) Or your way would I tried but forgot the &'s, so I put it in the top. Thank you for your help!! My projects: Inventory / Mp3 Inventory, Computer Stats Link to comment Share on other sites More sharing options...
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