Jitteron Newbie
Joined: 11 Mar 2005 Posts: 9
|
Posted: Sat Mar 12, 2005 4:25 am
Unfinished Winamp Controller Script |
I am currently in the process of making winamp script and I need a little bit of help.
I know the code is long winded and I am sure there are simplier ways to what Ive achieved, but hey it works and I do everything the hard way lol..
If someone could assist me on how to get a returned value for ToggleShufflePlay and a Volume Return that would be great. Oh and the jump to button which is J on the keyboard in winamp.
What I have should work if you install the needed files which are listed in the Finished MUD Scripts: Controlling Winamp from zMUD anyone?
Any help would be appreciated.. and sorry if the code doesn't work for you, ive prolly stuffed it up in my paste, but it is unfinished :oP lol
Code: |
#CLASS {Winamp}
#Alarm {1} {
#var song @Winamp.CurrentSongTitle
#var songtime @Winamp.CurrentPos
#var songlength @Winamp.CurrentSongLength
#var status %case (@Winamp.Status+1,"Stopped","Playing","Unkown","Paused")
#var songtime2 %eval(@songtime/1000)
#var displaytime %concat(%eval((@songtime/1000)/60),":",%mod(%eval(@songtime/1000),60))
#var displaytime2 %eval(@songlength/60)
#var displaytime3 %mod(@songlength,60)
#var displaytime4 {"Mins" @displaytime2":"@displaytime3 "Secs"}
#var displaytime5 {@displaytime2":"@displaytime3}
#var out2 %eval(@songtime2/10)
#var bitrate @Winamp.Bitrate
}
#KEY F1 {#var Winamp %comcreate("WinampCOM.Application")}
#KEY F2 {#var Winamp ""}
#BUTTON 5 {} {} {} {} {@songtime2} {} {} {Size} {181} {10} {Pos} {45} {626} {32784} {} {Gauge||12|@songlength|0|7} {} "" {Inset} {} {winampbar}
#BUTTON 6 {Display} {music ,is playing: "&w-=&b[&W"@song "&w"@displaytime4 "&bBitrate:" @bitrate"kbps""&b]&w=-"} {} {} {} {} {} {} {} {} {Pos} {28} {552} {} {} {} {} "" {} {} {}
#BUTTON 7 {Progress} {say Current song @ @displaytime of @displaytime5} {} {} {} {} {} {} {} {} {Pos} {28} {400} {} {} {} {} "" {} {} {}
#BUTTON 8 {Output} {#var out { %eval(((@displaytime2*60)+@displaytime3)/10)}} {} {} {} {} {} {} {} {} {Pos} {28} {476} {} {} {} {} "" {} {} {}
#BUTTON 9 {Shuffle} {#call @Winamp.ToggleShufflePlay(0)} {Shuffle ON} {#call @Winamp.ToggleShufflePlay(1)} {} {1} {} {Size} {60} {37} {Pos} {5} {814} {} {} {} {} "" {Explore|Top|Right} {} {}
#BUTTON 10 {Vol} {#PR vol "Enter Your Volume: 1 - 256";#IF (@vol < 256) {#IF (@vol > 0) {@Winamp.SetVolume(@vol)}}} {} {} {} {} {} {} {} {} {Pos} {28} {930} {} {} {} {} "" {} {} {}
#BUTTON 11 {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} {45} {37} {Pos} {5} {672} {} {} {} {} "" {Explore|Top|Right} {} {}
#BUTTON 12 {Back} {#call @Winamp.Rewind;#var currentsong @Winamp.CurrentSongTitle;#var songtime @Winamp.CurrentPos;#var songstatus %case(@Winamp.Status+1,"Stopped","Playing","Unkown","Paused")} {} {} {} {} {} {Size} {45} {37} {Pos} {5} {627} {} {} {} {} "" {Explore|Top} {} {}
#BUTTON 13 {Forward} {#call @Winamp.FastForward;#var song @Winamp.CurrentSongTitle;#var songtime @Winamp.CurrentPos;#var songstatus %case(@Winamp.Status+1,"Stopped","Playing","Unkown","Paused")} {} {} {} {} {} {Size} {45} {37} {Pos} {5} {762} {} {} {} {} "" {Explore|Top|Right} {} {}
#BUTTON 14 {Stop} {#Call @Winamp.Stop;#var song @Winamp.CurrentSongTitle;#var songtime @Winamp.CurrentPos;#var songstatus %case(@Winamp.Status+1,"Stopped","Playing","Unkown","Paused")} {} {} {} {} {} {Size} {45} {37} {Pos} {5} {717} {} {} {} {} "" {Explore|Top|Right} {} {}
#BUTTON 15 {} {#call @Winamp.Sendcommand(40059)} {} {} {} {} {} {Size} {37} {18} {Pos} {34} {885} {} {} {} {} "" {Explore|Top} {} {Vol_1}
#BUTTON 16 {} {#call @Winamp.Sendcommand(40058)} {} {} {} {} {} {Size} {40} {18} {Pos} {15} {885} {} {} {} {} "" {Explore|Top} {} {vol_2}
#BUTTON 17 {Volume} {@Winamp.SetVolume(0)} {} {} {} {} {} {Size} {40} {12} {Pos} {2} {886} {} {} {} {} "" {Explore} {} {}
#BUTTON 18 {} {} {} {} {@} {} {} {Size} {58} {10} {Pos} {3} {925} {} {} {Gauge||12|255|0|7} {} "" {Explore|Inset} {} {volbar};
#CLASS 0;
|
|
|