Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Hypercard > Re: Automatic t...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 76 of 146
Post > Topic >>

Re: Automatic timing

by Mark Schonewille <nospam@[EMAIL PROTECTED] > Aug 12, 2004 at 03:58 PM

Hi Jamie,

I suppose you have a script like this, somewhere:

on idle
   if fld "Digital Clock" is not the short time then
     put the short time into fld "Digital Clock"
   end if
   pass idle
end idle

You could adjust it as follows:

on idle
   if fld "Digital Clock" is not the short time then
     put the short time into myTime
     put myTime into fld "Digital Clock"
     if myTime is "13:00" then
       makeAnnouncement
     end if
   end if
   pass idle
end idle

The above script puts the time into a field if it is different 
from the current time and executes another handler if the time 
equals "13:00". By putting the time into a variable first, we 
make sure that it will also work with seconds (the long time).

The handler to be executed could be:

on makeAnnouncement
   go stack "Announcements" in new window
   put "Welcome back from lunch!" into fld 1
end makeAnnouncement

I hope this helps to get you started.

Best,

Mark


Jamie Leclerc wrote:
> I have the basic digital clock set on one card and I want it to break
> away to another stack at specific times for rolling announcements. 
> How can this be done???   Please help :)

-- 

eHUG coordinator
http://home.wanadoo.nl/mark.sch
http://www.ehug.info
 




 3 Posts in Topic:
Automatic timing
leclercj@[EMAIL PROTECTED  2004-08-11 17:48:06 
Re: Automatic timing
Mark Schonewille <nosp  2004-08-12 15:58:02 
Re: Automatic timing
dunbarx@[EMAIL PROTECTED]  2004-08-15 22:46:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Aug 29 14:07:50 CDT 2008.