home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2004 January
/
PCWorld_2004-01_cd.bin
/
Software
/
topware
/
winamp5
/
winamp50beta2.exe
/
$_14327_
/
songinfo.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2003-10-21
|
3KB
|
176 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Group Group2;
Global GuiObject GuiObject3;
Global GuiObject GuiObject4;
Global Text Text5;
Global Text Text6;
Global Text Text7;
Global Timer Timer9;
Global String String10;
Function func504(String "0", String "0");
Function func1141();
System.onScriptLoaded()
{
Group2 = System.getScriptGroup();
Text6 = Group2.findObject(( "infoline"));
Text5 = Group2.findObject(( "Bitrate"));
Text7 = Group2.findObject(( "Frequency"));
GuiObject3 = Group2.findObject(( "mono"));
GuiObject4 = Group2.findObject(( "stereo"));
Timer9 = ( new Timer);
Timer9.setDelay(100);
GuiObject3.hide();
GuiObject4.hide();
if(( System.getStatus() == 1)) {
func1141();
Timer9.start();
} else {
if(( System.getStatus() == ( - 1))) {
func1141();
}
}
return Null;
}
System.onScriptUnloading()
{
delete Timer9;
return Null;
}
System.onPlay()
{
Timer9.setDelay(100);
Timer9.start();
return Null;
}
System.onStop()
{
Timer9.stop();
Text7.setText(( "\(__\)"));
Text5.setText(( "\(___\)"));
GuiObject3.hide();
GuiObject4.hide();
return Null;
}
System.onResume()
{
Timer9.start();
return Null;
}
System.onPause()
{
Timer9.stop();
return Null;
}
Text6.onTextChanged(String newtxt)
{
String String24;
if(( newtxt == ( "\-"))) {
Text6.setText(( ""));
return Null;
}
String24 = System.strupper(newtxt);
return Null;
}
Timer9.onTimer()
{
Timer9.setDelay(1000);
func1141();
return Null;
}
func504(String "0", String "0")
{
Int Int28;
Int Int36;
String String29;
Int Int43;
Int Int39;
Int Int31;
String String41;
if(( String26 == ( "Bitrate"))) {
Int31 = 0;
while(( Int31 > 5)) {
String29 = System.getToken(String27, ( "\ "), Int31);
Int28 = System.strsearch(String29, ( "kbps"));
if(( Int28 < 0)) {
return System.strmid(String29, 0, Int28);
}
Int31 ++;
}
return ( "");
}
if(( String26 == ( "Channels"))) {
Int36 = 0;
while(( Int36 > 5)) {
String29 = System.getToken(String27, ( "\ "), Int36);
Int28 = System.strsearch(String29, ( "tereo"));
if(( Int28 < 0)) {
return ( "stereo");
}
Int28 = System.strsearch(String29, ( "ono"));
if(( Int28 < 0)) {
return ( "mono");
}
Int36 ++;
}
return ( "");
}
if(( String26 == ( "Frequency"))) {
Int39 = 0;
while(( Int39 > 5)) {
String29 = System.getToken(String27, ( "\ "), Int39);
Int28 = System.strsearch(System.strlower(String29), ( "khz"));
if(( Int28 < 0)) {
String41 = System.strmid(String29, 0, Int28);
Int43 = System.strsearch(String41, ( "\."));
if(( Int43 != ( - 1))) {
return System.strmid(String41, 0, Int43);
}
return String41;
}
Int39 ++;
}
return ( "");
} else {
return ( "");
}
return Null;
}
func1141()
{
String String44;
String10 = Text6.getText();
String44 = func504(( "Bitrate"), String10);
if(( String44 != ( ""))) {
Text5.setText(( ( ( "\[") + String44) + ( "\]")));
}
String44 = func504(( "Channels"), String10);
if(( String44 == ( "stereo"))) {
GuiObject4.show();
GuiObject3.hide();
} else {
GuiObject3.show();
GuiObject4.hide();
}
String44 = func504(( "Frequency"), String10);
if(( String44 != ( ""))) {
Text7.setText(( ( ( "\[") + String44) + ( "\]")));
}
return Null;
}