I’m pretty certain the standard answer is ‘if you have to ask, the answer is no’.
Unfortunately, I am in the same boat. Like you, I’m getting a pain in my hand(s) and would love some toggle switches, like you describe. After all, we already have something very similiar with the numlock-toggle, unfortunately that doesn’t work for movement (but it might help, possibly, with autocasting HA). TBH the entire force-to-move vs. force-to-attack thing is a bit awkward; WASD would do a lot to alleviate the strain issue, but that’s been rejected by Blizz at least 10 million times.
Unfortunately, the slope is very slippery when it comes to stuff like you suggest. Autohotkey in general is a red flag for Blizz, I think. Where exactly do you draw the line between strain prevention and active cheat? Mind, as I said, I’m completely with you on this but I doubt our concerns will be heard.