Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Control Winamp


  • Please log in to reply
4 replies to this topic
compuboy_r
  • Members
  • 68 posts
  • Last active: Oct 29 2005 03:17 PM
  • Joined: 04 May 2004
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

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
Looks good... being able to seek while winamp is inactive is especially nice.

compuboy_r
  • Members
  • 68 posts
  • Last active: Oct 29 2005 03:17 PM
  • Joined: 04 May 2004
This new Script also Controls Winamp from Mouse

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


Trancexually
  • Guests
  • Last active:
  • Joined: --
Doesn't Winamp now have global hotkeys inside of itself? I think it's a little easier using it :shock:

compuboy_r
  • Members
  • 68 posts
  • Last active: Oct 29 2005 03:17 PM
  • Joined: 04 May 2004

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