Media controls while in other programs/apps
Russty Nail 01
I would love a way that I could be in an other program and pause or interact with Google play music (or other player) without switching to the media player. For instance playing a game while listening to music and using my phone to change songs or thumbs up a song without having to alt tab out of the game. Could work as well for not changing from a document. That would be great.
Hmm that's very interesting.
Hope its alright, I have used the basis of your question (and some of the wording) to ask my own question on this subject from a general windows programming perspective, here.
I'm thinking it might require a complicated fix involving a batch file/VBS script, etc. so I posted to that site where I've found help on similar issues before. I changed example to VLC because I'm familiar with its shortcuts. If I find a solution to the problem, I will familiarise myself with Google Play music and include those details in my replies to this thread.
I just got this to work using EventGhost. I am pretty new to this program, so I'm off to learn how to implement this via Unified Remote. At the moment I just know how to execute the macro I created while in the EventGhost window, what I don't know yet is how to call it from the command line.
I will post back here as I learn more.
I cant find a Google Play Music plugin for Eventghost, but I did notice this command line client for GPM that should make control possible. Because you mentioned other players, and I use VLC, I've concentrated on that. I could probably have a look at GMP if there was call for it..
The VLC Media Player plugin for Eventghost allows control of VLC whilst in the background.
Each macro in the plugin (Play, Pause, Seek, etc) can be fired by Unified Remote actions, looks something like this:
[email protected] Show Title actions.vlc_pause = function() os.start("C:/Program Files (x86)/EventGhost/EventGhost.exe -e vlc_pause"); end
If anyone is interested in this and needs help setting it up, let me know and I'll post a walkthrough.