home *** CD-ROM | disk | FTP | other *** search
Winamp Compiled Maki Script | 2003-10-19 | 2.0 KB | 77 lines |
- /* Note: a decompiler is no invitation to steal code.
- Please respect the the copyright */
-
- #include "std.mi"
- Global Group Group2;
- Global Slider Slider3;
- Global Int Int4;
- Global Timer Timer5;
- Global Text Text6;
- Global Layer Layer7;
-
-
- System.onScriptLoaded()
- {
- Group2 = System.getScriptGroup();
- Slider3 = Group2.findObject(( "SeekerGhost"));
- Text6 = Group2.findObject(( "songticker"));
- Layer7 = Group2.findObject(( "player\.seekbar\.pos"));
- Timer5 = ( new Timer);
- Timer5.setDelay(1000);
- return Null;
- }
-
- Timer5.onTimer()
- {
- Text6.setText(( ""));
- Timer5.stop();
- return Null;
- }
-
- System.onScriptUnloading()
- {
- delete Timer5;
- return Null;
- }
-
- Slider3.onSetPosition(int newpos)
- {
- Int Int19;
- Float Float14;
- Float Float17;
- if(Int4) {
- Float14 = newpos;
- Float14 = ( ( Float14 / 255) * 100);
- Float17 = System.getPlayItemLength();
- if(( Float17 != 0)) {
- Int19 = ( ( Float17 * Float14) / 100);
- Timer5.start();
- Text6.setText(( ( ( ( ( ( ( "SEEK\:") + System.integerToTime(Int19)) + ( "\/")) + System.integerToTime(Float17)) + ( "\ \(")) + System.integerToString(Float14)) + ( "\%\)\ ")));
- }
- }
- return Null;
- }
-
- Slider3.onLeftButtonDown(int x, int y)
- {
- Int4 = 1;
- return Null;
- }
-
- Slider3.onLeftButtonUp(int x, int y)
- {
- Int4 = 0;
- Timer5.start();
- Text6.setText(( ""));
- return Null;
- }
-
- Slider3.onSetFinalPosition(int pos)
- {
- Timer5.start();
- Text6.setText(( ""));
- return Null;
- }
-
-
-