Example:
#macro {67, 47} {go west}
#macro {24, 47} {go east}
1st line means when Numlock, press '7' on Numpad will send go west,
2nd line means when nun-unlock, press '7' on Numpad will send go east.
Currently Alt/Ctrl/Shift states are not detected.
#macro 1   ==> dynamicly test the keycodes for the key u pressed,
                     press ESC key to back to normal mode.
See also: unmacro
ps: Macros under unix is underway (thinking about compatibility with Windows).