Hunter Macro Help

So I’m trying to get a macro setup for my hunter and I’m obviously not smart enough in this area to do it, so I’m asking for some help and guidance please!

I want the macro to first have my pet attack (I’m trying /petattack and /cast Attack(PetCommand).

Then I want to cast Hunter’s Mark.

And finally have it cast Steady Shot.

What would be really fabulous is if I could reset that macro if I change targets.

So this is what I have currently that doesn’t work, and I have tried tons of iterations of it.

#showtooltip Steady Shot
/cast Attack(Pet Command) (But like I said also tried /petattack)
/castsequence reset=target Hunter’s Mark, Steady Shot

Am what I’m trying for not possible? And I have seen some things like /stopmacro that maybe have something to do with it. I just can’t get it to work.

Thanks in advance everyone! Hope this helps someone else too!! /cheers

The problem is, castsequences start over when they get to the end. So, to make it do what you want, you need an abomination like this.

#showtooltip
/petattack
/castsequence reset=target Hunter's Mark, Steady Shot, Steady Shot, Steady Shot, Steady Shot, Steady Shot, Steady Shot, Steady Shot, Steady Shot, Steady Shot, Steady Shot, Steady Shot, Steady Shot, Steady Shot, Steady Shot, Steady Shot, Steady Shot

I personally think setting Hunter’s Mark to cast when you’re out of combat works better:

#showtooltip
/petattack
/cast [nocombat] Hunter's Mark; Steady Shot