Assuming you are sending this to a PC, look at MC Controller at "
https://mcec.codeplex.com/". I use this, and although I have not done exactly what you want, I have been able to control my PC quite extensively with this. Essentially anything you can type on your keyboard can be sent via this. It's free, so give it a look.