imacrazyballoono Posted July 6, 2006 Share Posted July 6, 2006 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. Link to comment Share on other sites More sharing options...
marfdaman Posted July 6, 2006 Share Posted July 6, 2006 Check this one out.Alzo Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Link to comment Share on other sites More sharing options...
Simucal Posted July 6, 2006 Share Posted July 6, 2006 (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 July 6, 2006 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) Link to comment Share on other sites More sharing options...
imacrazyballoono Posted July 6, 2006 Author Share Posted July 6, 2006 (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 July 6, 2006 by imacrazyballoono Link to comment Share on other sites More sharing options...
Paulie Posted July 6, 2006 Share Posted July 6, 2006 (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 Edited July 6, 2006 by Paulie Link to comment Share on other sites More sharing options...
marfdaman Posted July 6, 2006 Share Posted July 6, 2006 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 Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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