I want to find out how to do a countdown of days
using Scala ...as I am doing a countdown event on
the 31 December on a Videoboard. If anybody can
help...please do..thanks!!!
[email hidden] wrote in message <[email hidden]>...
>I want to find out how to do a countdown of days
>using Scala ...as I am doing a countdown event on
>the 31 December on a Videoboard. If anybody can
>help...please do..thanks!!!
I finally took me the needed 10 minutes time to make a ScalaScript that will
do what you need. I have uploaded it to the "files" area as
"Y2K_CountDown.sca". The script is made to work both in MM200 and in IC
Designer. It is uploaded in the editable form.
Below is a copy of that file:
!ScalaScript
EVENT
Group:
Config.SaveOpts();
Sequence:
:"Start"
EVENT
Group:
Integer(days[12], current_month, days_left, hours, minutes);
Sequence:
:"Set up month array"
EVENT
Group:
days[1] = 31;
days[2] = 28;
days[3] = 31;
days[4] = 30;
days[5] = 31;
days[6] = 30;
days[7] = 31;
days[8] = 31;
days[9] = 30;
days[10] = 31;
days[11] = 30;
days[12] = 31;
END
current_month = systime(Month)+1;
days_left = days[SysTime(Month)]-SysTime(Day);
:"Calculate the days left"
EVENT
Group:
While ( current_month < 13 );
Sequence:
days_left = days_left+days[current_month];
current_month = current_month + 1;
END
hours = 23-SysTime(Hour);
minutes = 59-SysTime(Minute);
:"Show days left to year 2000"
EVENT
Group:
Display();
Pause(1);
Text(20, 20, "There is^n!days_left days,^n!hours hours
and^n!minutes minutes left to year 2000");
END
END
END
Kjell...
"Kjell Didriksen" <[email hidden]>
wrote:
>
>[email hidden] wrote in message
<[email hidden]>...
>>I want to find out how to do a countdown of days
>>using Scala ...as I am doing a countdown event
on
>>the 31 December on a Videoboard. If anybody can
>>help...please do..thanks!!!
>
>I finally took me the needed 10 minutes time to
make a ScalaScript
>that will
>do what you need. I have uploaded it to
the "files" area as
>"Y2K_CountDown.sca". The script is made to work
both in MM200 and
>in IC
>Designer. It is uploaded in the editable form.
>
>Below is a copy of that file:
>
>!ScalaScript
>EVENT
> Group:
> Config.SaveOpts();
> Sequence:
> :"Start"
> EVENT
> Group:
> Integer(days[12], current_month,
days_left, hours, minutes);
> Sequence:
> :"Set up month array"
> EVENT
> Group:
> days[1] = 31;
> days[2] = 28;
> days[3] = 31;
> days[4] = 30;
> days[5] = 31;
> days[6] = 30;
> days[7] = 31;
> days[8] = 31;
> days[9] = 30;
> days[10] = 31;
> days[11] = 30;
> days[12] = 31;
> END
> current_month = systime(Month)+1;
> days_left = days[SysTime(Month)]-SysTime
(Day);
> :"Calculate the days left"
> EVENT
> Group:
> While ( current_month < 13 );
> Sequence:
> days_left = days_left+days
[current_month];
> current_month = current_month + 1;
> END
> hours = 23-SysTime(Hour);
> minutes = 59-SysTime(Minute);
> :"Show days left to year 2000"
> EVENT
> Group:
> Display();
> Pause(1);
> Text(20, 20, "There is^n!days_left
days,^n!hours hours
>and^n!minutes minutes left to year 2000");
> END
> END
>END
>
>Kjell...
>
>
>Just wanted to drop a line of appreciation to
Kjell.....thanks so much for your Y2K
SCALAscript!!!
: )
Old Forum Index |
Contact Scala about your end-to-end software solutions for creating and controlling Electronic Display Networks, whether you call it Dynamic digital signage, Narrowcasting, Captive Audience Networks, Kiosks, Point-of-Purchase Displays, Digital In-Store Merchandising, Out-of-Home Media Networks, Place-based Advertising, Display Marketing, Retail Digital Media Networks, Datacasting, Electronic Billboards, The Outernet or any of the other terms in use today. Scala conducts business through a worldwide network of Value Added Resellers. For more information on what this emerging industry is coming to be named, you can see how other people found this page. ©1993-2008 Scala, Inc. Scala, InfoChannel, and the Exclamation Point Logo are registered trademarks of Scala, Inc. All other trademarks are the property of their respective organizations. To see all the content on our Website, click Sitemap or check our blog for the latest updates. Read our Privacy Policy.