Jump to content

Need some more help.. With INI's


Recommended Posts

Alright since nobody is helping my with my other INI question i decided to skip to another part of my bot.... the script enginge/parser. Alright i know how to parse it the only problem i have is telling it to read StepCount=* THEN use the use the value as $stepcount then read Step*=DO STUFF TO Step[$stepcount]=DO STUFF. For Example say

StepCount=2

Step1=DO STUFF

Step2=DO STUFF

THEN DO NOTHING ELSE so it doesnt loop around and do step1 again..

I've been using

For $sn = 0 To $sc
DO STUFF
Next

But that just creats a loop and doesnt end after $sc is reached (I refered to $sc as $stepcount above)

Edited by jackyyll
Link to comment
Share on other sites

just a quick guess here

try

for $i = 0 to number($sc)
;DOOOOOO SHTUFFFFFFFFf
next

:o

AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide!
Link to comment
Share on other sites

I changed it to 1 and it still repeated :o

Also theres another problem, when i have the script so it looks like this:

[Main]
TransactionCount=1

[Transaction1]
CheckCount=1
Check1=Level, 800, skip
StepCount=2
Step1=Move, 15, 20
Step2=Move, 79, 72

It skips right to Step2=Move, 79, 72 instead of doing Step1=Move, 15, 20 first =x

Edited by jackyyll
Link to comment
Share on other sites

Anyone else have any ideas? Pleaseee i need to get this working lol. If StepCount=2 It goes to Step2=STUFF instead of first reading step1=STUFF. Then it repeats the step over and over not sure how many times tho

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