If you toggle it on/off it's not automation, for instance startattack or the wand shoot. You can use the script below with autohotkey:

Pause
Loop{
Send {F6}
sleep 1000
}
ESC::Pause

or something like that