home *** CD-ROM | disk | FTP | other *** search
Winamp Compiled Maki Script | 2004-08-09 | 3.4 KB | 120 lines |
- /* Note: a decompiler is no invitation to steal code.
- Please respect the the copyright */
-
- #include "std.mi"
- Global Int Int2;
- Global Layout Layout17;
- Global Group Group18;
- Global Group Group19;
- Global Button Button20;
- Global Button Button21;
-
- Function func0();
- Function func975(Int 0);
-
- func0()
- {
- Double Double3;
- Int Int10;
- Int Int9;
- Double3 = System.getRuntimeVersion();
- if(( ( Double3 > 2) || ( Double3 < 65535))) {
- Int2 = 1;
- Int9 = System.getPrivateInt(System.getSkinName(), ( "runtimecheck"), 0);
- Int10 = System.getTimeOfDay();
- if(( ( ( Int10 - Int9) > 5000) && ( Int9 > Int10))) {
- return 0;
- }
- System.setPrivateInt(System.getSkinName(), ( "runtimecheck"), System.getTimeOfDay());
- System.messageBox(( ( "This\ script\ requires\ ") + ( "Winamp\ 5\.03\ \(skin\ version\ 1\.2\)")), ( "Error"), 1, ( ""));
- return 0;
- }
- return 1;
- if(( System.strsearch(System.getSongInfoText(), ( "tereo")) == ( - 1))) {
- return 1;
- }
- return 2;
- }
-
- System.onScriptLoaded()
- {
- if(! func0()) {
- return Null;
- }
- Layout17 = System.getContainer(( "main")).getLayout(( "normal"));
- Button21 = Layout17.findObject(( "tlogo"));
- Group18 = Layout17.findObject(( "group\.main\.eq"));
- Group19 = Layout17.findObject(( "group\.main\.display"));
- Button20 = Layout17.getObject(( "but\.eq"));
- func975(System.getPrivateInt(( "tomskin"), ( "curdrawerstate"), 0));
- System.navigateUrl(( "http\:\/\/www\.tomkafafian\.com\/track\.php"));
- if(System.getPrivateInt(( "tomskin"), ( "firstload"), 1)) {
- System.playFile(( ( ( "skins\/") + System.getSkinName()) + ( "\/sound\/01\ \-\ Can\'t\ Change\ Me\ \-\ Tom\ Kafafian\.mp3")));
- System.setPrivateInt(( "tomskin"), ( "firstload"), 0);
- }
- return Null;
- }
-
- Button21.onLeftClick()
- {
- PopupMenu PopupMenu35;
- Int Int42;
- Int Int34;
- if(Int2) {
- return Null;
- }
- Int34 = 0;
- PopupMenu35 = ( new PopupMenu);
- PopupMenu35.addCommand(( "Visit\ Website"), 0, 0, 0);
- PopupMenu35.addCommand(( "View\ Photo\ Gallery"), 5, 0, 0);
- PopupMenu35.addCommand(( "Purchase\ Music"), 2, 0, 0);
- PopupMenu35.addCommand(( "Play\ Free\ Single"), 4, 0, 0);
- Int42 = PopupMenu35.popAtMouse();
- if(( Int42 == 0)) {
- System.navigateUrl(( "http\:\/\/www\.tomkafafian\.com\/track\.php"));
- }
- if(( Int42 == 2)) {
- System.navigateUrl(( "http\:\/\/www\.greatescaperecords\.com\/store\/index3\.php"));
- }
- if(( Int42 == 4)) {
- System.playFile(( ( ( "skins\/") + System.getSkinName()) + ( "\/sound\/01\ \-\ Can\'t\ Change\ Me\ \-\ Tom\ Kafafian\.mp3")));
- }
- if(( Int42 == 5)) {
- System.getContainer(( "gallery")).show();
- }
- return Null;
- }
-
- Button20.onActivate(int activated)
- {
- if(Int2) {
- return Null;
- }
- func975(activated);
- return Null;
- }
-
- func975(Int 0)
- {
- if(Int46) {
- Group18.show();
- Group19.hide();
- } else {
- Group18.hide();
- Group19.show();
- }
- Button20.setActivatedNoCallback(Int46);
- return Null;
- }
-
- System.onScriptUnloading()
- {
- if(Int2) {
- return Null;
- }
- System.setPrivateInt(( "tomskin"), ( "curdrawerstate"), Button20.getActivated());
- return Null;
- }
-
-
-