Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Send generic media controls to any program

If you have a question or need help, this is the place to be.
Post Reply
bradvido
Posts: 3
Joined: Thu Mar 25, 2010 5:22 pm

Send generic media controls to any program

Post by bradvido »

I'd like to send standard Play, Pause, FastForward, Rewind, etc. controls to the computer via eventghost. These keys are all found standard on media keyboards, however I can not seem to figure out how to emulate pressing a "pause" key with eventghost.

I know you can control specific media programs with plug-ins, but i just need these generic controls to work for all programs.

Thanks for the help!
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: Send generic media controls to any program

Post by Bartman »

You can do this with the sendmessage action

http://msdn.microsoft.com/en-us/library ... 85%29.aspx
bradvido
Posts: 3
Joined: Thu Mar 25, 2010 5:22 pm

Re: Send generic media controls to any program

Post by bradvido »

Thank you. I've read your link, but i'm still not sure how I use it with EventGhost.
In the eventghost send message configuration, what do i use for wparam and lParam?

From you link, it looks like I would want lParam to be APPCOMMAND_MEDIA_PAUSE, however, eventghost want an integer. How do i translate?
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: Send generic media controls to any program

Post by Bartman »

I only know some of the commands. Maybe you can find more with these ones. I'm sure buried in some files in the Windows SDK

Mute - 524288
Volumn down - 589824
Volumn up - 655360
Play / Pause - 917504
Stop - 851968
Previous track - 786432
Next track - 720896
bradvido
Posts: 3
Joined: Thu Mar 25, 2010 5:22 pm

Re: Send generic media controls to any program

Post by bradvido »

Check this link out http://forum.team-mediaportal.com/offto ... ost-35181/

Explains it pretty well.
Post Reply