Sign in to follow this  
Followers 0
bleed

[Brackets]

5 posts in this topic

`evening.

I`m finishing off my script where I have to write data into the .ini file. Everything works great except one last thing.

IniWrite ( "filename", "section", "key", "value" )

Is there a way to add brackets [] to the "key" or "value" so they actually look in between the brackes when they got written inside of a .ini file? Basicaly I need to IniRead them like "[key]" or "[value]" .

Thanks

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

NVM What i wrote, didnt get what you meant!

So you want the IniRead function to redad the key "[KEY]" not "KEY"?

If so, try this

[[Key]]
[value]=something

If not plz clarify

Edited by insignia96

Visit my website to see all my finished releases!Releases here:UDFs:GUI ResizingColor List (Web Colors)GUIFade_NearestPower

Share this post


Link to post
Share on other sites

Perhaps like...

IniWrite("File.ini", "Section", "[Key]", "[Value]")

Would output:

[section]

[Key]=[Value]


Still learning...I love autoit. :)

Share this post


Link to post
Share on other sites

Perhaps like...

IniWrite("File.ini", "Section", "Key", "[Value]")

Would output:

[section]

[Key]=[Value]

I guess that would work, the problem I have is that the "Value" is a $var. I have tryed playing around, but couldnt come up with anything.

IniWrite("File.ini", "Section", "[Key]", "[$var]") is what I acctually need.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I guess that would work, the problem I have is that the "Value" is a $var. I have tryed playing around, but couldnt come up with anything.

IniWrite("File.ini", "Section", "[Key]", "[$var]") is what I acctually need.

I hope this was a joke :)

IniWrite("File.ini", "Section", "[Key]", "[" & $var & "]")

Edited by Qousio

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