If your friend is gaming, then he's using windows, and autohotkey is the only (and best) option for creating macros. I'm not sure about Razer's software, but I know from owning my G15 that logitech lacks a timing system in their macro software. When you record a macro and play it back, your key sequence is executed as fast as possible. A program like autohotkey can be configured to control timing, and applications, and your OS, and anything else that someone has written a library for (there are a LOT of AHK libraries).
Programmable key pads are also an option. Some are very expensive new, but can be found on ebay for very cheap. I can't recommend this one specifically, but its a good example. Program the keys to whatever you need. This one is currently on ebay for around $25. (Kinesis SAVANT Programmable Keypad)
Show Image
(http://www.micwil.com/images/blurb/kinesis_corporation_savant_programmable_20_key_keypad_200x200.jpg)
BWU user here. Razer's macro is having timing(cancelable) in it's macro setting and recording but it doesn't work well in ON-THE-FLY mode. It is so god dam slow that even i type it out is faster...