Page 1 of 1
showing an object at a specific time
Posted: Mon Aug 30, 2010 7:26 am
by Glenn Boyce
I'd like an object to show at specific times each day.
show group "QualityBanner" at 16:00
this syntax doesn't work.What should I have?
cheers
Glenn
Re: showing an object at a specific time
Posted: Mon Aug 30, 2010 12:30 pm
by Klaus
Hi Glen,
get the time when your app starts, then calculate the seconds until 16:00.
Then "SEND" a handler that show your group in (the difference) seconds.
Something like this in your stack script:
Code: Select all
on openstack
convert the time to secs
put it into tStart
convert "16:00" to secs
put it into tEnd
put (tEnd - tStart)/60 into whatever
send "show_my_group" to me in whatever secs
...
end openstack
command show_my_group
show grp "QualityBann"
end show_my_group
Best
Klaus
Re: showing an object at a specific time
Posted: Mon Aug 30, 2010 11:21 pm
by Glenn Boyce
Thank you
Re: showing an object at a specific time
Posted: Tue Aug 31, 2010 2:00 pm
by Klaus
Hi Glen,
sorry, I made little mistake:
...
put (tEnd - tStart) into whatever
...
Do NOT divide by 60!
That was from my testing to see the past minutes instead of the past seconds.
Best
Klaus