Help - Search - Members - Calendar
Full Version: Repeated Keystrokes
AC Tools Everything Macro > AC Tool > AC Tool Discussion
Chewy33
Learning just to do simple scripts, was wondering how do I make it do repeated keystrokes for a certain amount of time for 1 specific key? I've tried to manually enter commands with delays, but its almost impossible to nail it down to do the same thing for exactly 20 secs.

Example:

I want to make ACTool push leftclick on the mouse repeatedly over and over for 20 secs.

This is what I have so far, and it works for one leftclick (attacks with wep)

SetActiveWindow insertgamenamehere
Delay 2000
keys g
delay 2000
LeftClick
delay 20000
end

Instead of having it just left click once, how do I modify that to have it leftclick over and over for the 20 secs duration?
Bear
QUOTE(Chewy33 @ Apr 17 2009, 03:49 PM) *
Instead of having it just left click once, how do I modify that to have it leftclick over and over for the 20 secs duration?


CODE
While {ElapsedMSec} <= 20000
  LeftClick
End

Chewy33
QUOTE(Bear @ Apr 19 2009, 01:43 AM) *
QUOTE(Chewy33 @ Apr 17 2009, 03:49 PM) *
Instead of having it just left click once, how do I modify that to have it leftclick over and over for the 20 secs duration?


CODE
While {ElapsedMSec} <= 20000
  LeftClick
End



If I wanted to keep the macro going after the repeated keystroke part, what do I need to enter cuz the entire macro seems to stop after the end statement.

Basically this is what im trying to do:

delay 1000
keys w
delay 1500
keys g
delay 3000

While {ElapsedMSec} <= 20000
LeftClick
end <---- end stops the macro, what do i need here instead to keep the macro going?

keys g
delay 500
keys z
delay 300
leftclick
delay 124000
keys e
delay 1500
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.