John Perkins
NewTek Staff
I'm having fun this weekend
Here is a small script to create a clock that can be overlayed live.
Name this AutoClock.ToasterScript and place it in both:
C:\VT4\Skins\CG\Large\Main\User Scripts
C:\VT4\Skins\CG\Mini\MainScreen\User Scripts
Then open CG Designer and type in a line of text in whatever style you choose. Go to the layout tab and label that line of text AutoClock.
Menu Items are added that start and stop the clock.
I tried to choose colors for my control that weren't already in use, but I can't guarantee anything. If you do something similar, be careful not to reuse a mask color or else the functionality of what was using that mask color will stop functioning. In my case I killed the File menu on the first try.
Here is a small script to create a clock that can be overlayed live.
Code:
//Autoclock.ToasterScript
Clock=CreateControl(255 7 9 "SkinControl_SubControl_Layers")
Clock:{
AddCallback("Timer", code(
SetText( AutoClock, GetLocalTime_Time() )
Update()
)
)
}
AddMenuItem("%Auto Clock", code( 0 ) )
AddMenuItem("Start Clock", code(
Clock: {
StopTimer()
StartTimer( 1000 )
}
)
)
AddMenuItem("Stop Clock", code(
Clock:StopTimer()
)
)
Name this AutoClock.ToasterScript and place it in both:
C:\VT4\Skins\CG\Large\Main\User Scripts
C:\VT4\Skins\CG\Mini\MainScreen\User Scripts
Then open CG Designer and type in a line of text in whatever style you choose. Go to the layout tab and label that line of text AutoClock.
Menu Items are added that start and stop the clock.
I tried to choose colors for my control that weren't already in use, but I can't guarantee anything. If you do something similar, be careful not to reuse a mask color or else the functionality of what was using that mask color will stop functioning. In my case I killed the File menu on the first try.
Last edited: