Help - Search - Members - Calendar
Full Version: Multiple processes at once?
AC Tools Everything Macro > AC Tool > AC Tool Discussion
aaaaaaaaaaaaaaaaaaaaaaaaaa
I want to run a loop for a given amount of time... so i have written this:

CODE
SetActiveWindow Fox

constants
a=0
end



loop 1000000
delay 62 sec
a = a+1
end

while a<1
leftclick
leftclick
leftclick
end



But what I realized is that it will not run both conditional processes at once, only one, and then the other. sad.gif

I am trying to get it to spam leftclick for 62 seconds so that I do not need to try to switch over and shut it off manually once I am done with the spamming for my particular online game.
Bear
And when you Attemped to Run this what Happened?

Error in line 9? "a=a+1" that's not a ACTool valid action. All Constants (Most of the Time) have a $ in front, also it looks like your going for Compute,
but it'd be easier just to use "inc $a".

As your code stands now, if $a would compute correctly:
Loop 1: Delays for 62 seconds, A becomes 1.
Loop 2: Delays for 62 seconds, A becomes 2.
Loop 3: Delays for 62 seconds, A becomes 3.
.
.
.
Loop 1000000: Delays for 62 seconds, A becomes 1000000.

Something like 717 days before this loop is done. Then it'll goto the While statement.

While $a < 1 // Well at this point a is gonna = 10000000, so this is gonna be a endless loop.

Were you trying to just Spam LeftClick for 62 seconds?

CODE
SetActiveWindow Fox

While {ElapsedMSec} <= 62000
  LeftClick
  delay 50
End

this spam the LeftClick about 14,000 times in 62 seconds.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.