TheLeO
Joined: 11 Jun 2005 Posts: 151 Location: England ish
|
Posted: Mon Apr 07, 2008 4:56 pm Post subject: A hotkey(SC120)(mute) miss triggers when Ctrl+d is pressed |
|
|
Well I solved it now. But still I'm still curious if it's a bug or me just missing out on some thing......
Here's the sistuation...
I've got a Media keyboard with lots of media buttons..
I've got a volume controll, a sorta disc that you turn clockwise or antil clockwise to increase or decrease volume. It can also be pressed down to trigger a mute...
Before i used the following hotkey to make something useful out of the mute button.(ie play/pause in itunes if pressed once)
| Code: |
SC120::
IfWinExist, ahk_class iTunes
ControlSend, ahk_parent, {Space} ; > Play/Pause
return |
However, when I press Ctrl D, the hotkey is also triggered, ie itune play./pause...
This was quite annoing, because i use Ctrl D for other things in programs. and instead of the program doing something, itunes started or stoped a song...
I was wondering is it a fault in the autohotkey scan code input, or is there something i don't know about scan codes?
Well now i realised you can just use Volume_Mute:: instead, which does not get triggered by ctrl D.  _________________ And i say: where there is a problem , there is a solution.(well some where that is.)
::
I Have Spoken
:: |
|