I need my app to do something at midnight every week day, should I wright my app like this:
on openStack
do stuff
clsoe stack
end openStack
And have windows use scheduled task to run my app at midnight.
Or,
Is there a way in live code to check the time and when time = 0:00:00, then do stuff?
Time trigger or Scheduled task?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Time trigger or Scheduled task?
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här
Re: Time trigger or Scheduled task?
Hi.
Simple to make a stack that can live forever, whether or not LC is in front or not
On a new card, make a button and a field. Put this into the button script:
Now I suggest that for testing you change the time to something you can play with. And instead of just putting that time into the field, you can do something else. This will not interfere with any other LC process, and it will work regardless of what else you are doing on your computer.
Craig NEwman
Simple to make a stack that can live forever, whether or not LC is in front or not
On a new card, make a button and a field. Put this into the button script:
Code: Select all
on mouseUp
findMidnight
end mouseUp
on findMidNight
if the long time = "12:00:00 AM" then
put the long time & return after field 1
wait 2 seconds
end if
send "findMidNight" to me in 30
end findMidNight
Craig NEwman
Re: Time trigger or Scheduled task?
Thank you, works beautifully.
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här