| View previous topic :: View next topic |
| Author |
Message |
Surfer666
Joined: 17 Oct 2006 Posts: 3
|
Posted: Tue Oct 17, 2006 3:47 am Post subject: Media Keys - Logitech Elite Keyboard |
|
|
I have a Logitech Elite Keyboard and it has some good media functions...
Anyhow I have found that I need recreate these functions within AHK...
I have successfully found the docs to the system volume and mute, but my problem is that I can't get the Media_Play_Pause, Media_Stop to work properly...
It works fine with WMP, but when I want to use the two things above in Winamp, it won't do anything.
Also I would like to create a function that would do something to the effect of back and next as found on the keyboard... (When Winamp is up it'll change tracks)
Thanks for any help.
PS I am actually mapping this to a PS2 remote/controller (using an appropriate converter) [this doesn't change anything; and yes it does work... amazingly I can even get my TV remote to remember the infrared] |
|
| Back to top |
|
 |
Surfer666
Joined: 17 Oct 2006 Posts: 3
|
Posted: Wed Oct 18, 2006 3:08 am Post subject: |
|
|
Well since no one decided to help me... I made a temp fix for myself...
| Code: | #Include D:\Programs\AutoHotKey\Scripts\Winamp.ahk
;; Start button
Joy9::
if WinActive("Windows Media Player") or !Winamp("Exist") {
Send { Media_Play_Pause }
return
}
if Winamp("Exist") {
if Winamp("Is Playing")=1 {
Winamp("Pause")
}
else {
Winamp("Play")
}
return
}
return
;; Circle
Joy2::
if WinActive("Windows Media Player") or !Winamp("Exist") {
Send { Media_Stop }
return
}
if Winamp("Exist") {
if Winamp("Is Playing")=1 {
Winamp("Stop")
}
return
}
return |
|
|
| Back to top |
|
 |
Freighter
Joined: 07 Sep 2006 Posts: 64
|
Posted: Wed Oct 18, 2006 6:37 am Post subject: |
|
|
theres an option in winamp's options to enable global hotkeys, it will make it do what you want for winamp if you enable it.
also im curious to what ps2 infrared remote your using? |
|
| Back to top |
|
 |
Surfer666
Joined: 17 Oct 2006 Posts: 3
|
Posted: Thu Oct 19, 2006 1:09 am Post subject: |
|
|
| Freighter wrote: | theres an option in winamp's options to enable global hotkeys, it will make it do what you want for winamp if you enable it.
also im curious to what ps2 infrared remote your using? | I'll have a look, I heard that the global hotkeys need to be enabled in Winamp for the Media_Play_Stop to work
Any would work... just a generic one really (although here's the official one http://fp.scea.com/Content/peripherals/SCPH-10420/1/detail/image.jpg )
You just need a good adapter... such as the Super Dual Box Pro (which I have)
[Edit]
Interesting how it needs to be enabled, I have verified this and it does indeed require it to be enabled. Although it works fine with my keyboard without it. |
|
| Back to top |
|
 |
|