AHK Macro question - Split: Word of the Void

hi guys and sorry for my bad english

i am a new macros and ahk user and i got a problem :
all i can do is have a script to spam ma single maccro with this :


#IfWinActive, World of Warcraft
Loop
{
ControlSend,1,World of Warcraft
sleep 30
}
return

Capslock::
Suspend
Pause,1
return


someone can help me ? i would like to have a script for :
spam my single macro “1”
stop spam ( actually my script chain spam and then pull everything ! )
spam my aoe macro “2”

actually in donjon i can’t use my aoe maccro cause only my “1” is ok .

Please help me and share a copy/past of your script or what i have to do .

Thx you all

I wish AHK code would stay in their own forums, as I have almost no knowledge of the program and can’t help.

Moved into its own thread

XButton1::

$stop := 0

Loop,

{

if(GetKeyState(“LButton”,”P”))

{

KeyWait, LButton, U

}

else

freq:=100

Send f

Sleep %freq%

if ($stop)

{

return

}

}

XButton2::

$stop := 1

This is what I use, Xbutton1 starts macro, Xbutton2 stops spam (side buttons on my Corsair HARPOON). F is what I have as key binding in game.

AHK users