AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Media Keys - Logitech Elite Keyboard

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Surfer666



Joined: 17 Oct 2006
Posts: 3

PostPosted: Tue Oct 17, 2006 3:47 am    Post subject: Media Keys - Logitech Elite Keyboard Reply with quote

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
View user's profile Send private message
Surfer666



Joined: 17 Oct 2006
Posts: 3

PostPosted: Wed Oct 18, 2006 3:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Freighter



Joined: 07 Sep 2006
Posts: 64

PostPosted: Wed Oct 18, 2006 6:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Surfer666



Joined: 17 Oct 2006
Posts: 3

PostPosted: Thu Oct 19, 2006 1:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group