Scala - Digital Signage Software [Logo]
Languages: EnglishGermanPolishJapaneseNorwegianFrench
  Markets Products Partners Services Support About Us  
Scala Support Scala Celebrates 20 Years of Innovation and Leadership

How to do a countdown of days to Y2k with Scala Infochannel ?

Posted: 16 Aug 99 02:14:36 GMT -- by goldvein. Subject: How to do a countdown of days to Y2k with Scala Infochannel ?


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!!!

Posted: Mon, 16 Aug 1999 13:45:29 -0400 -- by Kjell Didriksen. Subject: Re: How to do a countdown of days to Y2k with Scala Infochannel ?



[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...



Posted: 17 Aug 99 02:57:01 GMT -- by goldvein. Subject: Re: How to do a countdown of days to Y2k with Scala Infochannel ?



"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!!!

: )


Back: wav error sound does not play or play with echo

   Old Forum Index   
(Page 44 of 612)

Next: Demo

Additional Information
Request DVD - Concepts and demo
Contact Scala Sales
Search