Sending a button press from a different machine

Not sure if this thread is what you need but may be worth a look.