Controlling mediaportal with messages (1 Viewer)

milanp

Portal Member
April 22, 2004
41
1
Skopje
Home Country
Is it possible to control Mediaportal with windows messages ?
I want to control Mediaportal with Girder when it is not running in foreground, and the standard keyboard control is not good.
Is there any list of (wparam,lparam,message number) list for controling Mediaportal with Girder ?
 

bschuler

Portal Member
August 6, 2006
5
0
Bethlehem, Pa
I've searched in vain myself. I think everyone is just throwing simulated keys at it and seeing what sticks. Hopefully a better remote controlling option via girder will be implemented soon, as it is a shame really. The #1 remote control app can't control the #1 media app.
 

sean2078

Portal Member
August 10, 2006
7
0
I would agree. program needs a way to control it. :)

It is a media player after all.

Does anyone know how global keyboard shortcuts can be used to perform basic commands like pause or play?

Thanks.
 

sean2078

Portal Member
August 10, 2006
7
0
I can't speak for the original poster, but I was aluding to how to setup the program to respond to global keyboard events. While I think the original poster wanted to control the app using the Windows API or other means.

For example, to be able to press Ctrl-Shift-P or Pause on your multimedia keyboard (hypothetically) to pause music playback even though MediaPortal doesn't have focus. Right now, MediaPortal is setup to only respond to event messages when it has focus.

Once I have time, I'll probably code in a global message handler/hook, but for now it will have to wait.
 
O

~ok|

Guest
Hi,

I wanted to see exactly what he wanted to do because I know that Girder is able to send keystroke events to unfocused applications: that's why I was surprised by the question and wanted to help him out.
At the opposite, if the problem is related to lack of keyboard bindings then I'm pretty useless on the matter.

bye
 

bschuler

Portal Member
August 6, 2006
5
0
Bethlehem, Pa
No.. Meedio had this very same issue to till someone made the WM COMMAND plugin. Basically.. you can have a host of programs attempt to throw keypresses at Mediaportal.. and with any luck.. it will catch 95-99%.. but the best method is still with windows commands.. cuz then it is 100% guaranteed. It eventually starts getting frustrating when it accidentally clears you que, skips screens, or worse (locks up), etc.. because it skipped a keypress somewhere in the middle of what you were doing.

Basically.. start taxing out your CPU by doing stuff.. and the keypress method starts failing whereas windows messaging doesn't. Try it.. and you'll see.. keypresses via remote start failing due to timing, etc.

Sean0278,
Sounds good. I'll wait for whatever ya make. I always figured that until it can do windows commands, I'll just play with it. I knew someone would eventually solve this.. and a few other.. glaring issues. I'm a very patient man and I can see the potential.
 

Users who are viewing this thread

Top Bottom