Here you go G:
The macro comes in two parts. One is your spam macro, the other one is for when kill command procs.
Macro 1:
#showtooltip Steady Shot
/console Sound_EnableSFX 0
/cast !Auto Shot
/cast Steady Shot
/click [target=pettarget,exists] BongosActionButton38
/console Sound_EnableSFX 1
/script UIErrorsFrame:Clear()
Macro 2
/castsequence reset=4 Kill Command, !Auto Shot, !Auto Shot, !Auto Shot
Now the "BongosActionBar38" you see is the slot where I have my second macro hidden. This varies depending on what barmod you use (or don't use). You need to find a slot in an empty action bar, hover your mouse over it and use this macro to find out what you need to replace it with:
/run local f = GetMouseFocus(); if f then DEFAULT_CHAT_FRAME:AddMessage(f:GetName()) end
Now all you do is put macro 2 in that spot, hide it and start spamming
Also, here's my pet macro. It'll make your hunter a happy moocow
/cast [nopet] Call Pet;[target=pet,dead]Revive Pet
/clearfocus [target=focus,dead]
/focus [target=focus,exists]player;target
/clearfocus [target=focus,noharm]
/petattack [target=focus,exists]
/petfollow [target=focus,noexists]
/cast Hunter's Mark
Basically what it does is this:
When dismissed it calls your pet, if dead it resses. If out of combat it applies hunters mark, a focus frame pops up and your pet attacks. If in combat your pet gets called back. It also clears the /focus if the target is dead and you aint targetting anything.