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
showing an object at a specific time
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: showing an object at a specific time
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:
Best
Klaus
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
Klaus
-
- Posts: 137
- Joined: Thu Jul 24, 2008 11:22 pm
Re: showing an object at a specific time
Thank you
Re: showing an object at a specific time
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
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