Innocuous Posted September 28, 2007 Share Posted September 28, 2007 So i cant make my iniwrite work, tho it doesnt show any error message this is what should happen: IniWrite(@ScriptDir & ".\test.ini", "ACC", "AccName", "1") tho it doesnt write anything in my ini. I've tried to change the iniwrite to a msgbox, and it shows up, so the iniwrite should happen :/ any1 who knows how it works? ^^ my ini looks like this: ... [ACC] AccName= ... Link to comment Share on other sites More sharing options...
GaryFrost Posted September 28, 2007 Share Posted September 28, 2007 take the . out of the path? IniWrite(@ScriptDir & "\test.ini", "ACC", "AccName", "1") SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Zedna Posted September 28, 2007 Share Posted September 28, 2007 Try: IniWrite(@ScriptDir & "\test.ini", "ACC", "AccName", "1") Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Valuater Posted September 28, 2007 Share Posted September 28, 2007 (edited) IniWrite(@ScriptDir & ".\test.ini", "ACC", "AccName", "1") as you stated, worked for me ..what version of Autoit are you using? ..are you looking in the script folder for the file? .. did you try to search your computer for "test.ini"? Normally, I dont use the period "." as you did 8) Man... really slow...lol Edited September 28, 2007 by Valuater Link to comment Share on other sites More sharing options...
Innocuous Posted September 28, 2007 Author Share Posted September 28, 2007 ahh it works without the dot... ^^ sry im a bit new to this well now i got 1 more problem that would be nice if u could solve i want it to do this, so it writes what $accname is equal to. IniWrite(@ScriptDir & "\test.ini", "ACC",$accname) Im using a GUI-input, i dunno if that changes anytjing, but it goes like this: $accname = GuiCtrlCreateInput("<AccName>",70,10,100,18) Link to comment Share on other sites More sharing options...
GaryFrost Posted September 28, 2007 Share Posted September 28, 2007 IniWrite(@ScriptDir & "\test.ini", "ACC",GuiCtrlRead($accname)) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Innocuous Posted September 28, 2007 Author Share Posted September 28, 2007 thx a lot man, now its working gr8 hope u didnt mind all those "noob" questions ^^ 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