#show .-------------------------------------------------------------. #show |.zMUD Controls for Winamp..............................v 1.0 | #show |-------------------------------------------------------------| #show |.This scripts requires you to install the Winamp COM plugin:.| #show |...http://www.winamp.com/plugins/details.php?id=6538.........| #show |-------------------------------------------------------------| #show |.A class "winamp" will be created. The button size/position..| #show |.is what I have, feel free to resize and move them to where..| #show |.you'd like them to be. You also get an alias 'winamp' which.| #show |.by itself will echo to your screen the current track and....| #show |.time. Pass it an argument to send the info someplace else, .| #show |.for example: 'winamp music' will send it to music channel, .| #show |.'winamp tell kadaan' will tell kadaan the info..............| #show '-------------------------------------------------------------' #CLASS {Winamp} #ALIAS winamp {#if (%1 = "") {winamp #show} {%1 %2 @lbracket Winamp Playing: (@song) ~[%concat( %eval( (@songtime)/60), ":", %if(%mod(%eval( @songtime), 60) < 10, 0)%mod(%eval( @songtime), 60))/%concat( %eval( (@songlength)/60), ":", %if(%mod(%eval( @songlength), 60) < 10, 0)%mod(%eval( @songlength), 60))] @rbracket}} #VAR song {@Winamp.CurrentSongTitle} #VAR songtime {%eval( @Winamp.CurrentPos / 1000)} #VAR songlength {@Winamp.CurrentSongLength} #VAR status {%case( @Winamp.Status+1, "Stopped", "Playing", "Unkown", "Paused")} #BUTTON 100 {%if(@winamp,Disconnect,Connect)} {#if (@winamp) {#var Winamp ""} {#var Winamp %comcreate( "WinampCOM.Application");#ALARM {1} {#if (@winamp) {#var song @Winamp.CurrentSongTitle;#var songtime %eval( @Winamp.CurrentPos / 1000);#var songlength @Winamp.CurrentSongLength;#var status %case( @Winamp.Status+1, "Stopped", "Playing", "Unkown", "Paused")}}}} {Disconnect} {#var Winamp ""} {} {} {} {Size} {72} {13} {} {} {} {} {} {} {} "" {Explore} {} {} {2} #BUTTON 101 {<<} {#call @Winamp.Rewind;#var currentsong @Winamp.CurrentSongTitle;#var songtime @Winamp.CurrentPos;#var songstatus %case( @Winamp.Status+1, "Stopped", "Playing", "Unkown", "Paused")} {} {} {} {} {} {Size} {20} {13} {} {} {} {} {} {} {} "" {Explore|Inset} {} {} {2} #BUTTON 102 {%if(@songstatus="Playing",Pause,Play)} {#if (@songstatus="Playing") {#call @Winamp.Pause} {#call @Winamp.Play};#var song @Winamp.CurrentSongTitle;#var songtime @winamp.CurrentPos;#var songstatus %case( @Winamp.Status+1, "Stopped", "Playing", "Unkown", "Paused")} {} {} {} {} {} {Size} {35} {13} {} {} {} {} {} {} {} "" {Explore|Inset} {} {} {2} #BUTTON 103 {Stop} {#Call @Winamp.Stop;#var song @Winamp.CurrentSongTitle;#var songtime @Winamp.CurrentPos;#var songstatus %case( @Winamp.Status+1, "Stopped", "Playing", "Unkown", "Paused")} {} {} {} {} {} {Size} {27} {13} {} {} {} {} {} {} {} "" {Explore|Inset} {} {} {2} #BUTTON 104 {>>} {#call @Winamp.FastForward;#var song @Winamp.CurrentSongTitle;#var songtime @Winamp.CurrentPos;#var songstatus %case( @Winamp.Status+1, "Stopped", "Playing", "Unkown", "Paused")} {} {} {} {} {} {Size} {20} {13} {} {} {} {} {} {} {} "" {Explore|Inset} {} {} {2} #BUTTON 105 {@songstatus: @song ~[%concat( %eval( (@songtime)/60), ":", %if(%mod(%eval( @songtime), 60) < 10, 0)%mod(%eval( @songtime), 60))/%concat( %eval( (@songlength)/60), ":", %if(%mod(%eval( @songlength), 60) < 10, 0)%mod(%eval( @songlength), 60))]} {} {} {} {@songtime} {} {} {Size} {578} {13} {} {} {} {31} {} {Gauge||12|@songlength|0|0} {} "" {Explore} {} {winampbar} {2} #CLASS 0