mIRC Home    About    Download    Register    News    Help

Print Thread
#157895 30/08/06 12:27 AM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline OP
Hoopy frood
OP Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
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.

#157896 30/08/06 06:12 AM
Joined: Sep 2004
Posts: 14
I
Pikka bird
Offline
Pikka bird
I
Joined: Sep 2004
Posts: 14
Can $com be used to do this in the meantime? I have often wondered about using them myself.

#157897 30/08/06 08:50 AM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
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...


If it ain't broken, don't fix it!
#157898 30/08/06 12:21 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline OP
Hoopy frood
OP Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
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.

#157899 01/09/06 10:15 AM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
can't you just catch key number instead of ascii number?


If it ain't broken, don't fix it!
#157900 02/09/06 08:03 AM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline OP
Hoopy frood
OP Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
I think the key number will be the same.


Link Copied to Clipboard