home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 January
/
01_03.iso
/
service
/
winamp3
/
files
/
winamp3_0-full.exe
/
Skins
/
Default.wal
/
scripts
/
firststart.m
< prev
next >
Wrap
Text File
|
2002-07-22
|
777b
|
35 lines
#include <lib/std.mi>
Global Boolean startit;
Global GuiObject ThingerIcon;
Global Timer timor;
System.onScriptLoaded() {
startit = 0;
if (getPrivateInt("firststart", "done", 0) == 1) return;
startit = 1;
}
System.onScriptUnloading() {
if (timor != NULL) delete timor;
}
System.onPlay() {
if (!startit) return;
startit = 0;
Layout l = getContainer("main").getLayout("normal");
if (l == NULL) return;
ThingerIcon = l.findObject("Thinger");
if (ThingerIcon == NULL) return;
ThingerIcon.onNotify("forcedwobbling", "", 1, 0);
setPrivateInt("firststart", "done", 1);
timor = new Timer;
timor.setDelay(3000);
timor.start();
}
timor.onTimer() {
ThingerIcon.onNotify("forcedwobbling", "", 0, 0);
timor.stop();
}