Mike,

One of my applications always gets the date and time from my Internet server. 
If your users will always have an Internet connection, you could use this:

--somewhere in the initialization routine:
  global gTimeServerURL ,gTimeOnServer, gGetTimeCallID 
  if gTimeServerURL <> empty then --get server time off the net
    gTimeOnServer = empty --this will be set to the string returned by 
gTimeServerURL, e.g. "2004-12-31 00:00:00"
    gGetTimeCallID = getNetText(gTimeServerURL) --exitFrame will watch this and 
when getNetText is done, will set gTimeOnServer to the string returned by the 
server
  end if

--in exitFrame:
  if (gTimeOnServer = empty) and (gTimeServerURL <> empty) then --it hasn't 
been set yet since the last time user clicked Submit
    global gGetTimeCallID --this was set when getNetText(gTimeServerURL) was 
called
    if netDone(gGetTimeCallID) then
      gTimeOnServer = TrimTabsAndSuch(netTextResult(gGetTimeCallID))
    end if
  end if
  
The gTimeServerURL , whehn visited, returns one line of text--the date 
formatted string that you see above. In my case, it's a ColdFusion server, but 
you can do this with any CGI script.

Slava

At 09:38 AM 10/26/05 -0400, you wrote:
>Hi list...
>
>I need to make a projector non-functional after a certain date, and I'm
>hoping to get a good strategy on how best to accomplish this.  I'm
>assuming I don't have access to the user's registry.  I was thinking of
>writing a small text file to the appData folder, but I figured that
>might be too easy to alter if they change their clock.  I was also
>pondering having the disc check online on startMovie for a script on a
>server that will return true/false, but that still might not cover
>altering the date.
>
>Has anyone done something like this before?
>
>Thanks,
>- Mike

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to