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 

Control Winamp

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
compuboy_r



Joined: 04 May 2004
Posts: 68

PostPosted: Sat May 15, 2004 8:31 am    Post subject: Control Winamp Reply with quote

DetectHiddenText, On
DetectHiddenWindows, On
winamppath = c:\program files\winamp\winamp.exe ;change winamp path here




;___________PLAY/PAUSE
Media_Play_Pause::
SendMessage, 0x400,0,104,,ahk_class Winamp v1.x
if errorlevel = 0
{
SendMessage, 0x111,40045,,,ahk_class Winamp v1.x
}

else
{
SendMessage, 0x111,40046,,,ahk_class Winamp v1.x
}

return

;____________PREVIOUS TRACK
Media_Prev::
PostMessage, 0x111,40044,,,ahk_class Winamp v1.x
return

;_______________NEXT TRACK
Media_Next::
PostMessage, 0x111,40048,,,ahk_class Winamp v1.x
return

;_______________STOP
Media_Stop::
PostMessage, 0x111,40047,,,ahk_class Winamp v1.x
return

;_______________RUN/CLOSE WINAMP
Launch_Media::
IfWinExist ,ahk_class Winamp v1.x
{
PostMessage, 0x111,40001,,,ahk_class Winamp v1.x
}

else
{
run,%winamppath%
}
return

;_________________SEEK FORWARD
^Media_Next::
SendMessage, 0x400,0,105,,ahk_class Winamp v1.x
if errorlevel <> -1
{
errorlevel += 5000
PostMessage, 0x400,%errorlevel%,106,,ahk_class Winamp v1.x
}
return

;__________________SEEK BACKWARD
^Media_Prev::
SendMessage, 0x400,0,105,,ahk_class Winamp v1.x
if errorlevel <> -1
{
errorlevel -= 5000
PostMessage, 0x400,%errorlevel%,106,,ahk_class Winamp v1.x
}
return
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sat May 15, 2004 11:59 am    Post subject: Reply with quote

Looks good... being able to seek while winamp is inactive is especially nice.
Back to top
View user's profile Send private message Send e-mail
compuboy_r



Joined: 04 May 2004
Posts: 68

PostPosted: Sun Jun 20, 2004 6:37 pm    Post subject: Reply with quote

This new Script also Controls Winamp from Mouse

compuboy_r

Code:

DetectHiddenText, On
DetectHiddenWindows, On
;___________________WINAMP CONTROLS
;NOW ALSO WITH MOUSE

/*
MOUSE CONTROLS:


Ctrl+Alt+MiddleButton = Play/Pause
Ctrl+Alt+LeftButton = Previous Track
Ctrl+Alt+RightButton = Next Track

Ctrl+Shift+LeftButton = Seek Back
Ctrl+Shift+RightButton = Seek Forward
Ctrl+Shift+MiddleButton = Stop

Ctrl+Shift+Alt+MiddleButton = Run/Close Winamp

*/

;___________PLAY/PAUSE
^!MButton::
Media_Play_Pause::
SendMessage, 0x400,0,104,,ahk_class Winamp v1.x
   if errorlevel = 0
   {
   SendMessage, 0x111,40045,,,ahk_class Winamp v1.x
   }
   
   else
   {
   SendMessage, 0x111,40046,,,ahk_class Winamp v1.x
   }

return

;____________PREVIOUS TRACK
^!LButton::
Media_Prev::
   PostMessage, 0x111,40044,,,ahk_class Winamp v1.x
return

;_______________NEXT TRACK
^!RButton::
Media_Next::
   PostMessage, 0x111,40048,,,ahk_class Winamp v1.x
return

;_______________STOP
^+MButton::
Media_Stop::
   PostMessage, 0x111,40047,,,ahk_class Winamp v1.x
return

;_______________RUN/CLOSE WINAMP
^+!MButton::
Launch_Media::
   IfWinExist ,ahk_class Winamp v1.x
   {
   PostMessage, 0x111,40001,,,ahk_class Winamp v1.x
   }

   else
   {
   run,e:\program files\winamp\winamp.exe ;change winamp path here
   }
return

;_________________SEEK FORWARD
^+RButton::
^Media_Next::
   SendMessage, 0x400,0,105,,ahk_class Winamp v1.x
   if errorlevel <> -1
   {
   errorlevel += 5000
   PostMessage, 0x400,%errorlevel%,106,,ahk_class Winamp v1.x
   }
return

;__________________SEEK BACKWARD
^+LButton::
^Media_Prev::
   SendMessage, 0x400,0,105,,ahk_class Winamp v1.x
   if errorlevel <> -1
   {
   errorlevel -= 5000
   PostMessage, 0x400,%errorlevel%,106,,ahk_class Winamp v1.x
   }
return
Back to top
View user's profile Send private message
Trancexually
Guest





PostPosted: Fri Aug 27, 2004 3:50 am    Post subject: Reply with quote

Doesn't Winamp now have global hotkeys inside of itself? I think it's a little easier using it Shocked
Back to top
compuboy_r



Joined: 04 May 2004
Posts: 68

PostPosted: Fri Aug 27, 2004 8:18 am    Post subject: Reply with quote

Trancexually wrote:
Doesn't Winamp now have global hotkeys inside of itself? I think it's a little easier using it Shocked


I dont think so that u can Control Winamp using the Mouse the way i have done it with That Global Hotkey Plugin.

compuboy_r
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions 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