Tommy I dunno exactly what you need, but I use Autohotkey quite a bit. Here's what I use it for:
In WoW, you can "prospect" ore from mining. This yields gems, which can be cut and used or sold. Now prospecting is a second and a half cast, plus about half a second to loot the gems. I often have a few hundred ore at a time so as you can imagine, hitting the same buttons over and over for half an hour can get tedious. This is where Autohotkey comes in
I've got a script which presses the macro button in-game, whether or not I'm in the game, browsing, watching shit on YOutube, whatever. It takes any input on the PC, whether it be moving the mouse or hitting a button, and translates it into pressing the number 1 on WoW, so as long as I'm doing something on my PC, the script makes sure I'm prospecting in the background.
Very handy and saves a TON of time.