Sign in to follow this  
Followers 0
imacrazyballoono

ini help

6 posts in this topic

Is there a way to check how many keys there are in a specified section? For example, if i wanted to make a program that had to make a new key in a specified section, but then had to go back and read it.

Share this post


Link to post
Share on other sites



Check this one out.

Alzo


Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Is there a way to check how many keys there are in a specified section? For example, if i wanted to make a program that had to make a new key in a specified section, but then had to go back and read it.

Just IniReadSection the section you want to know about, which will return a 2-dimmensional array. The [0][0] position of that array returns the number of keys in that section.

EDIT: Fixed my post.

Edited by Simucal

AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

So what I have to do is make a loop that reads them until it gets an error?

On a related note, is there a way to make a key in an ini? or would i have to use filewrite?

Edited by imacrazyballoono

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Is there a way to check how many keys there are in a specified section? For example, if i wanted to make a program that had to make a new key in a specified section, but then had to go back and read it.

first one in the array returned by INIReadSection

$var = IniReadSection

Msgbox(0, "Number of Keys", "There are " & $var[0][0] & "keys in that section")

EDIT:

Wow, i got beat by people :D

Edited by Paulie

Share this post


Link to post
Share on other sites

So what I have to do is make a loop that reads them until it gets an error?

On a related note, is there a way to make a key in an ini? or would i have to use filewrite?

1. Look at what Simucal and I said. An array will be returned, of which element [0][0] contains the amount of keys in the specified section.

2. There is also a function IniWrite, look that one up as well, and post when you've read it but still don't understand :D


Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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