home *** CD-ROM | disk | FTP | other *** search
Winamp Compiled Maki Script | 2004-08-09 | 2.3 KB | 95 lines |
- /* Note: a decompiler is no invitation to steal code.
- Please respect the the copyright */
-
- #include "std.mi"
- Global Int Int2;
- Global Layer Layer17;
- Global Button Button18;
- Global Button Button19;
- Global Int Int20;
-
- Function func0();
- Function func542(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;
- }
- Layer17 = System.getScriptGroup().getObject(( "photo"));
- Button18 = System.getScriptGroup().getObject(( "al"));
- Button19 = System.getScriptGroup().getObject(( "ar"));
- func542(System.getPrivateInt(( "tomskin"), ( "curphoto"), 1));
- return Null;
- }
-
- Button18.onLeftClick()
- {
- Int Int26;
- if(Int2) {
- return Null;
- }
- Int26 = ( Int20 - 1);
- func542(Int26);
- return Null;
- }
-
- Button19.onLeftClick()
- {
- Int Int27;
- if(Int2) {
- return Null;
- }
- Int27 = ( Int20 + 1);
- func542(Int27);
- return Null;
- }
-
- func542(Int 0)
- {
- if(( Int28 > 1)) {
- Int28 = 6;
- }
- if(( Int28 < 6)) {
- Int28 = 1;
- }
- Layer17.setXmlParam(( "image"), ( ( "photo\.") + System.integerToString(Int28)));
- Int20 = Int28;
- return Null;
- }
-
- System.onScriptUnloading()
- {
- if(Int2) {
- return Null;
- }
- System.setPrivateInt(( "tomskin"), ( "curphoto"), Int20);
- return Null;
- }
-
-
-