A different take. Ive always used a "gaming " mouse like the razor naga or my current one the logitech (i forget the name but its a naga clone with a bunch of buttons). Anyways, they both let you record macros with recorded delay or preset. Ive recorded a simple 7 seconds of me alching ( but you can do longer) and toggle it on and off. Personally i have suicide alched on many accounts doing this and had no bans. Ive left it clicking nothing sometimes meaning i ran out of things to alch and its still clicking for an hour until the 6 hour timer and still no bans. Results may vary, but it works very well for me.
I suppose AHK would work too but i just use the software the mice come with.