QUOTE(Ahk @ Mar 17 2009, 07:39 PM)

CODE
While 1 = 1
IsObject Bla at $PosX, $PosY
Break
Else
Delay 1000
End
End
So this is for the loading screen at the end of my code or would I have one of this set for each StartingPosition? I think you mean the latter, which would put my code at:
CODE
//Establish Starting Points
//Starting Point (1) at X, Y
Object StartingPoint(1)
blahblahblah
End
//Starting Point (2) at X, Y
Object StartingPoint(2)
blahblahblah
End
//Starting Point (3) at X, Y
Object StartingPoint(3)
blahblahblah
End
//Starting Point (4) at X, Y
Object StartingPoint(4)
blahblahblah
End
//Starting Point (5) at X, Y
Object StartingPoint(5)
blahblahblah
End
////////////////////////////////////
//Use Starting Points to determine specific path routes and key strokes
Compute Timeout = {Elapsedmsec} + 30000 //30 second timeout
//Starting Point (1)
While 1 = 1
IsObject StartingPoint(1) at X, Y //Locating Starting Point (1)
//If character's initial location is at Starting Point (1), follow these key commands
Break
Else
If Timeout < {elapsedmsec} //Send Timeout to AC Tool Test Log
TimeStamp did not find StartingPoint(1) in 30 seconds...stopping
Stop
End
End
End
//Starting Point (2)
While 1 = 1
IsObject StartingPoint(2) at X, Y //Locating Starting Point (2)
//If character's initial location is at Starting Point (2), follow these key commands
Break
Else
If Timeout < {elapsedmsec} //Send Timeout to AC Tool Test Log
TimeStamp did not find StartingPoint(2) in 30 seconds...stopping
Stop
End
End
End
//Starting Point (3)
While 1 = 1
IsObject StartingPoint(3) at X, Y //Locating Starting Point (3)
//If character's initial location is at Starting Point (3), follow these key commands
Break
Else
If Timeout < {elapsedmsec} //Send Timeout to AC Tool Test Log
TimeStamp did not find StartingPoint(3) in 30 seconds...stopping
Stop
End
End
End
//Starting Point (4)
While 1 = 1
IsObject StartingPoint(4) at X, Y //Locating Starting Point (4)
//If character's initial location is at Starting Point (4), follow these key commands
Break
Else
If Timeout < {elapsedmsec} //Send Timeout to AC Tool Test Log
TimeStamp did not find StartingPoint(4) in 30 seconds...stopping
Stop
End
End
End
//Starting Point (5)
While 1 = 1
IsObject StartingPoint(5) at X, Y //Locating Starting Point (5)
//If character's initial location is at Starting Point (5), follow these key commands
Break
Else
If Timeout < {elapsedmsec} //Send Timeout to AC Tool Test Log
TimeStamp did not find StartingPoint(5) in 30 seconds...stopping
Stop
End
End
End
I removed the Delays because I need it to instantly move to the next search.
So what do I need after the break to start back at the beginning of the code? As of right now, the break keeps StartingPoint(1) looped forever. I've been trying with Restart, Exit, etc and cannot seem to find a placement that works. How can I get the whole code to restart at the beginning?
My problem with using time delay is that the game's map begins to move between 15-20 seconds into each game. The map is the same for each game, but after 15-20 seconds, the map moves. So if the timing is off for loading and lag times, the bot won't work.
I hope I'm explaining this correctly.