Jump to content

Need help with iniwrite


Innocuous
 Share

Recommended Posts

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

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

Link to comment
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)

:)

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