Send key sequence to running application
I'm looking for a way to send a specific sequence of keys to a running application, if it exists. For instance, I'd like to bind Mod + < space > to, say, pause my music player by finding the window named "rdio" and sending a keystoke to it.
Pointers? Thanks!