mIRC Homepage
Posted By: hixxy Media keys - 30/08/06 12:27 AM
Could we have aliases that work similar to the function key aliases but for the media keys on the keyboard? Many have a play/pause button, back button, next button and stop button, up/down volume buttons (mine has a dial you can turn but it fires a key event each each time it's moved) and a mute button.
Posted By: IAmParadox Re: Media keys - 30/08/06 06:12 AM
Can $com be used to do this in the meantime? I have often wondered about using them myself.
Posted By: Doqnach Re: Media keys - 30/08/06 08:50 AM
this would be hard to implement correctly I think.

I know logitech has software for the keyboard which makes it act globally. for instance at a certain version of the driver, if you would push the play button it would open your default music player (in my case that was winamp).

you need to have the drivers support your application else another app (usually the default one) will 'steal' your keypresses...
Posted By: hixxy Re: Media keys - 30/08/06 12:21 PM
Windows has a RegisterGlobalHotkey() api that can capture keypresses without 'stealing them' (i.e. other apps still receive them), it just means that even if mIRC is active windows media player would use the keypress if it's open. I think this is how most applications capture global keypresses.

Certain keyboards automatically opening a certain media player when you hit the key isn't a good reason not to include this imo.

One thing I've noticed however is that the up/down volume control has the same ascii number as ( and ), so I'm not sure how you tell them apart.

IAmParadox: nope, mIRC doesn't support COM events. A dll could work though.
Posted By: Doqnach Re: Media keys - 01/09/06 10:15 AM
can't you just catch key number instead of ascii number?
Posted By: hixxy Re: Media keys - 02/09/06 08:03 AM
I think the key number will be the same.
© mIRC Discussion Forums