I use xRemote as well (its a great plugin).
I guess you use it in the same way, i have some macros defined in eventghost and when in xlobby mode they send WM_USER messages to xlobby which trigger the xremote events.
Only mentioning eventghost because
a) its free
b) i found girder damm confusing
c) i found eventghost easy to pick up
d) its a good example of an open source application.