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
Control Winamp
Started by
compuboy_r
, May 15 2004 07:31 AM
4 replies to this topic
#1
-
Posted 15 May 2004 - 07:31 AM
Looks good... being able to seek while winamp is inactive is especially nice.
#2
-
Posted 15 May 2004 - 10:59 AM
This new Script also Controls Winamp from Mouse
compuboy_r
compuboy_r
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
#3
-
Posted 20 June 2004 - 05:37 PM
Doesn't Winamp now have global hotkeys inside of itself? I think it's a little easier using it :shock:
#4
-
Posted 27 August 2004 - 02:50 AM
Doesn't Winamp now have global hotkeys inside of itself? I think it's a little easier using it :shock:
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
#5
-
Posted 27 August 2004 - 07:18 AM