First, how the macro used to be:
#showtooltip Hemorrhage
/dismount
/cast [nostealth] stealth
/cast [combat] Hemorrhage
Fairly simple. If I'm unstealthed, I stealth (which makes my action bar change to stealth setting. Hitting the same key again, activates my cheap shot macro). But if I'm in combat, I Hemo my target. Worked like a charm....unless I didn't have enough energy for Hemo or I just ran into a Flare. In those cases I just stood there, looking silly.
So I changed it a bit:
#showtooltip Hemorrhage
/dismount
/cast [nostealth] stealth
/cast [combat] Hemorrhage
/stopmacro [stealth]
/startattack [nostealth]
In theory, the macro should now stop if I am still stealthed after checking whether or not to Hemo. But it doesn't. Also, /startattack is triggered regardlessly. If I am stealthed, I automatically target a foe (if one isn't targetted already) and try to attack him ONCE. If he's too far away, the attempted attacks stop after one try. If he's in my face, I just ruined my own attempt to stealth.
When I'm having most problems with this, is for instance after blinding an opponent, then waiting until I leave combat. Hit my key, and enter stealth, but also fire this ONE attack against my target just after.
Am I missing something? Can it be contributed to some kind of lag? Or is /stopmacro [stealth] and /startattack [nostealth] simply bugged?