#CLASS "Winamp"
#ALARM {1} {#VAR currentsong {@Winamp.CurrentSongTitle};#VAR songtime {@Winamp.CurrentPos};#VAR songlength {@Winamp.CurrentSongLength};#VAR songstatus {%case(@Winamp.Status+1,"Stopped","Playing","Unknown","Paused")}}
#KEY F9 {#call @Winamp.Rewind;#VAR currentsong {@Winamp.CurrentSongTitle};#VAR songtime {@Winamp.CurrentPos};#VAR songlength {@Winamp.CurrentSongLength};#var songstatus {%case(@Winamp.Status+1,"Stopped","Playing","Unkown","Paused")};#SHOW {%ansi(bold,red)Now playing: @currentsong}}
#KEY F10 {#call @Winamp.FastForward;#var currentsong {@Winamp.CurrentSongTitle};#var songtime {@Winamp.CurrentPos};#VAR songlength {@Winamp.CurrentSongLength};#var songstatus {%case(@Winamp.Status+1,"Stopped","Playing","Unknown","Paused")};#SHOW {%ansi(bold,red)Now playing: @currentsong}}
#KEY F11 {#if (@songstatus="Playing") {#call @Winamp.Pause} {#call @Winamp.Play};#var currentsong {@Winamp.CurrentSongTitle};#var songtime {@winamp.CurrentPos};#VAR songlength {@Winamp.CurrentSongLength};#var songstatus {%case(@Winamp.Status+1,"Stopped","Playing","Unkown","Paused")}}
#KEY F12 {#Call @Winamp.Stop;#var currentsong {@Winamp.CurrentSongTitle};#var songtime {@Winamp.CurrentPos};#VAR songlength {@Winamp.CurrentSongLength};#var songstatus {%case(@Winamp.Status+1,"Stopped","Playing","Unkown","Paused")};#SHOW {%ansi(bold,red)Now playing: @currentsong}}
#KEY F1 {#var Winamp %comcreate("WinampCOM.Application")}
#KEY F2 {#var Winamp ""}
#STW {@songstatus: @currentsong %cr Position: %concat(%eval((@songtime/1000)/60),":",%mod(%eval(@songtime/1000),60))  %cr F9:Previous Track - F10:Next Track %cr F11:Play/Pause - F12: Stop %cr F8:Broadcast to last channel}
#GAUGE winampbar "Winamp progress bar" (@songtime/1000) @songlength 0 "Winamp" "" "grey" ""
#ALIAS amp {#IF (%null(%1)) {#SHOW {"amp ~<channel~> - Broadcast what you are listening to!"}} {#VAR AmpChannel {%-1};%-1 I'm listening to: @currentsong}}
#KEY F8 {#EXEC @AmpChannel I'm listening to: @currentsong}
#VAR currentsong {0} {0}
#VAR songlength {0} {0}
#VAR songstatus {"Stopped"} {"Stopped"}
#VAR songtime {0} {0}
#VAR Winamp {0} {0}
#VAR AmpChannel {0} {0}
#SA {Kernighan's Winamp Script V1.3}
#CLASS 0
