 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
compuboy_r
Joined: 04 May 2004 Posts: 68
|
Posted: Sat May 15, 2004 8:31 am Post subject: Control Winamp |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sat May 15, 2004 11:59 am Post subject: |
|
|
| Looks good... being able to seek while winamp is inactive is especially nice. |
|
| Back to top |
|
 |
compuboy_r
Joined: 04 May 2004 Posts: 68
|
Posted: Sun Jun 20, 2004 6:37 pm Post subject: |
|
|
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 |
|
 |
Trancexually Guest
|
Posted: Fri Aug 27, 2004 3:50 am Post subject: |
|
|
Doesn't Winamp now have global hotkeys inside of itself? I think it's a little easier using it  |
|
| Back to top |
|
 |
compuboy_r
Joined: 04 May 2004 Posts: 68
|
Posted: Fri Aug 27, 2004 8:18 am Post subject: |
|
|
| Trancexually wrote: | Doesn't Winamp now have global hotkeys inside of itself? I think it's a little easier using it  |
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|