What software program are you using to multibox? If it's ISBoxer, use that to write macros. If it's something else, then I'd suggest looking into writing macros through Jamba.