Sign in to follow this  
Followers 0
Innocuous

Need help with iniwrite

7 posts in this topic

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

Share this post


Link to post
Share on other sites



#4 ·  Posted (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 by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

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)

:)

Share this post


Link to post
Share on other sites

thx a lot man, now its working gr8 :)

hope u didnt mind all those "noob" questions ^^

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  
Followers 0