Simple spam key

Tyrantp

New member
Joined
Jul 30, 2010
Messages
91
Reaction score
0
Points
0
Been searching forums, and I feel dumb asking because I actually made one before. But, I just need a macro that spams 1 key with delays I can set..I remember it being like 8-9 lines, if anyone has one or can link me would <3 u.
 
You can use /keypress. Example, to press the 1 key (for hotkey 1), you would just do: /keypress 1

Delay is easy, just /delay xx, or /delay xxs (s = seconds, default is 10's of a sec without that or another time option).

Are you saying you want someone to write out the macro for c/p, or is that enough info for you to throw it together yourself?

Code:
Sub Main
/declare mydelay int outer 5
/if (${Defined[Param0]}) /varset mydelay ${Param0}
:myloop
/keypress 1
/delay ${mydelay}s
/goto :myloop
/return

Untested, but that should give you the basic idea.

htw
 
Non-bards can use MQ2Twist for spamming 1 spell over and over.
 
Yeah, my impression was he wasn't looking to cast a spell.... I could be wrong!

htw
 
Ended up with somethin basic, can basically repeat the cycle as much as necessary..thanks again HTW.


Code:
|Keypress.mac
|V1


Sub Main
 :loop
 /keypress 1
 /delay 10s
 /keypress 2
 /delay 10s
 /goto :loop
 /return
/endmacro