Download the SDK for WMP, and you should see how to send it commands without resorting to sendkeys