Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: /playpause arguements using messages (Read 2981 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

/playpause arguements using messages

Hi.
I'm using Girder to use my multimedia keyboard and my remote to control foobar. At first I was using messages but I wanted to be able to put the play/pause functionality in one button so i discovered the /playpause command line arguements and it's working great. The only problem is that when I'm wathcing a dvd and I wanna control my PowerDVD or if I wanna control anything else and I press one of the buttons which are also binded with foobar it runs foobar and starts playing. With messages it wasn't like this because then the message would just end nowhere if the win class wasn't available and the message was ignored but here it runs foobar if it's closed.
So how can I get the /playpause functionality using only messages.

Thanks.

/playpause arguements using messages

Reply #1
Can anyone help me with this please?

/playpause arguements using messages

Reply #2
Okay, I don't know how attached you are to your "Girderr" or what 'n' such, but the following is what worked for me using a Logitech Internet Navigator.

1) "Install" the keyboard using the standard Microsoft drivers, don't bother with Logitech's, too much crap.

2) Open up FooBar, under hotkeys, start creating global hotkeys.  Select the space where it askes for the keyed input, and push the button you want to attach to the function (play/pause, forward/random, etc.).

3) Profit?

when FooBar is running, it takes priority over other applications that grab WM_COMMAND messages, when it isn't running, the media keys on your keyboard will control which ever application is active and can make use of them (WMPlayer, PowerDVD, others).

Pants.

- Jaxon

/playpause arguements using messages

Reply #3
Wouldn't that require foobar's main window to be always open? Not necessarily in focus but it can't be minimized into the tray.

/playpause arguements using messages

Reply #4
Nope, it only doesn't work when foobar is closed.

/playpause arguements using messages

Reply #5
Global hotkeys work no matter where FooBar is as long as it is running.

 

/playpause arguements using messages

Reply #6
Just use executable file name instead of class name in girder's "target selector" window.

Should work.