Why do I sometime cast random spell or my spell misses?

The subject line, sometime I don’t feel like I’m casting anything at all(although my char animations suggest I’m cast something but it’s not applying the doit as per the macro). I’m also getting the term “miss” on some spells, is the a requirement of some kind of latency applied to the key linked to the macro?

Sequences['DB_ShadowPriest'] = {
author="Xavièr@Khaz'goroth",
specID=258,
version=5,
source = "Local",
helpTxt = "unknown Talents",
icon='INV_MISC_QUESTIONMARK',
lang="enUS",
PreMacro=[[
/targetenemy [noharm][dead]
]],
"/castsequence [nochanneling] reset=12  Shadow Word: Pain, Vampiric Touch",
PostMacro=[[
]],
}

Missing an attack on an enemy is part of the game, unless you mean something else. As for you not casting skills, it could be do to the reset=12, however, I dont know enough to really offer you any help, sorry.

Does it or does it not cast Shadow Word Pain ? Have you choosen talents before creating the macro ?

Did you try it out at a low level dummy?

If it works there, then is just the spells are not landing or maybe you are channeling something that prevents from casting.