There's actually a discussion on that in the Group Comp forum, complete with low-level macros

http://www.dual-boxing.com/showthread.php?t=46107