Move graphic object, scheduled by specific date

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
joran
Posts: 20
Joined: Fri May 13, 2016 1:00 pm

Move graphic object, scheduled by specific date

Post by joran »

Hi

Is there a simple way to move a object (let's say a graphic Oval) into a specific place on a card
using a date values, not time values

ex. move graphic "oval" to 100, 100
// I want this motion to take place at ex. Thursday, July 15, 2016 //

I have looked into send messages etc but I don't really understand how, or if this send message is the right way to go . . .

// Joran
ClipArtGuy
Posts: 265
Joined: Wed Aug 19, 2015 4:29 pm

Re: Move graphic object, scheduled by specific date

Post by ClipArtGuy »

You are definitely on the right track with looking at send. Try this in a button with a graphic "oval" on the card somewhere other than 100,100. This script will check the date every 12 hours (43200 seconds) and move the grc oval if the date is 7/15/16.

Code: Select all

on  mouseup
   if the short date is "7/15/16" then
      move graphic "oval" to 100, 100
   else
      send "mouseup" to me in 43200 seconds 
   end if
   
end mouseup
joran
Posts: 20
Joined: Fri May 13, 2016 1:00 pm

Re: Move graphic object, scheduled by specific date

Post by joran »

Works great, big thanks !
Post Reply