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)
