Timed scripts without locking up functionality

dunbarx at aol.com dunbarx at aol.com
Mon May 13 20:57:24 EDT 2013


What everyone said, though I would:


wait 120 seconds with messages.


Anyway, you see that "wait" is blocking, and either standard way out of it will release control to the engine while you, er, wait.


The "send in time" method is more robust.


Craig Newman



-----Original Message-----
From: Magicgate Software - Skip Kimpel <skip at magicgate.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Mon, May 13, 2013 8:22 pm
Subject: Timed scripts without locking up functionality


I am having a hard time researching a solution since most of the forums are
down :)  Here is my issue, hopefully somebody has the simple answer to my
question...

I have a script that runs every two minutes and I have been calling it with:

on mouseUp
  wait for 120 seconds
  processRequest
end mouseUp

I then call a repeat script that keeps checking for the status and
repeating it until a condition is met.  Obviously when I do this it locks
up my software until the condition has been satisfied.

How can I do this without locking everything up?
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list