home *** CD-ROM | disk | FTP | other *** search
Winamp Compiled Maki Script | 2004-07-01 | 2.8 KB | 77 lines |
- /* Note: a decompiler is no invitation to steal code.
- Please respect the the copyright */
-
- #include "std.mi"
- Global Group Group16;
- Global Slider Slider17;
- Global Int Int18;
- Global Timer Timer19;
- Global Text Text20;
- Global Layer Layer21;
-
-
- System.onScriptLoaded()
- {
- Group16 = System.getScriptGroup();
- Slider17 = Group16.findObject(( "SeekerGhost"));
- Text20 = Group16.findObject(( "songticker"));
- Layer21 = Group16.findObject(( "player\.seekbar\.pos"));
- Timer19 = ( new Timer);
- Timer19.setDelay(1000);
- return Null;
- }
-
- Timer19.onTimer()
- {
- Text20.setText(( ""));
- Timer19.stop();
- return Null;
- }
-
- System.onScriptUnloading()
- {
- delete Timer19;
- return Null;
- }
-
- Slider17.onSetPosition(int newpos)
- {
- Float Float27;
- Int Int31;
- Float Float30;
- if(Int18) {
- Float27 = newpos;
- Float27 = ( ( Float27 / 255) * 100);
- Float30 = System.getPlayItemLength();
- if(( Float30 != 0)) {
- Int31 = ( ( Float30 * Float27) / 100);
- Timer19.start();
- Text20.setText(( ( ( ( ( ( ( "SEEK\:") + System.integerToTime(Int31)) + ( "\/")) + System.integerToTime(Float30)) + ( "\ \(")) + System.integerToString(Float27)) + ( "\%\)\ ")));
- }
- }
- return Null;
- }
-
- Slider17.onLeftButtonDown(int x, int y)
- {
- Int18 = 1;
- return Null;
- }
-
- Slider17.onLeftButtonUp(int x, int y)
- {
- Int18 = 0;
- Timer19.start();
- Text20.setText(( ""));
- return Null;
- }
-
- Slider17.onSetFinalPosition(int pos)
- {
- Timer19.start();
- Text20.setText(( ""));
- return Null;
- }
-
-
-