Yes, you definitely can. Check the documentation and look for an example here:
http://www.autohotkey.com/forum/

If someone can provide multibox-specific mouse code that would be great. It has been on my to-do list for a long time.