For Windows: process WM_APPCOMMAND messages

Feature requests for VLC.
Mercury048
Blank Cone
Blank Cone
Posts: 85
Joined: 20 Jan 2008 02:15

Re: For Windows: process WM_APPCOMMAND messages

Postby Mercury048 » 05 Oct 2008 02:20

Are they global?

It is my understanding that messages get sent to the active window only. Global hotkeys would require something like a system hook (either a message hook or a keyboard hook). I may be wrong though. :?

ETA: Well, you definitely fixed the problem of messages getting eaten. Thanks! Still, nothing happens with the play/pause/stop buttons... Any plans to get this running? Is it easy from what you've seen?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: For Windows: process WM_APPCOMMAND messages

Postby VLC_help » 05 Oct 2008 14:29

You can send WM_APPCOMMAND as broadcast messages or target one specific window with postmessage or with sendmessage, I assume some software do that or someone might want to do that. And WM_APPCOMMAND stuff would in some extent work like VLC hotkeys so if user want to prevent hotkeys completely, there should be option for that.
Thanks! Still, nothing happens with the play/pause/stop buttons... Any plans to get this running? Is it easy from what you've seen?
Should be trivial for some keys. If nothing super bad happens to me, I will add some keys on Wednesday to QT4 and Skins2 interface.

Mercury048
Blank Cone
Blank Cone
Posts: 85
Joined: 20 Jan 2008 02:15

Re: For Windows: process WM_APPCOMMAND messages

Postby Mercury048 » 05 Oct 2008 18:29

You can send WM_APPCOMMAND as broadcast messages or target one specific window with postmessage or with sendmessage, I assume some software do that or someone might want to do that. And WM_APPCOMMAND stuff would in some extent work like VLC hotkeys so if user want to prevent hotkeys completely, there should be option for that.
I see. I guess a checkbox somewhere can't hurt.
Should be trivial for some keys. If nothing super bad happens to me, I will add some keys on Wednesday to QT4 and Skins2 interface.
Awesome!

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: For Windows: process WM_APPCOMMAND messages

Postby VLC_help » 08 Oct 2008 23:02

I have to consult mailing list about these additions. There is too much code duplication if I just copy&paste same stuff to both GUIs.

Mercury048
Blank Cone
Blank Cone
Posts: 85
Joined: 20 Jan 2008 02:15

Re: For Windows: process WM_APPCOMMAND messages

Postby Mercury048 » 08 Oct 2008 23:19

Dump the shared code into a function and call it from both GUIs?
Sorry but what's the problem here? :?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: For Windows: process WM_APPCOMMAND messages

Postby VLC_help » 09 Oct 2008 19:07

I am gonna take shortcut told me in mailinglist and abuse hotkeys. I will hopefully post QT4 version today. It seems that something broke skins2, so there will be delay for it.
EDIT:
AARRGRGHHH, I don't know how I can smuggle p_intf inside to winEventFilter( MSG *msg, long *result ) because there isn't getIntf()


Return to “VLC media player Feature Requests”

Who is online

Users browsing this forum: No registered users and 6 guests