How to create a background process

DunbarX at aol.com DunbarX at aol.com
Fri Sep 25 16:59:05 EDT 2009


Josep

Try this crude example, and add your own timing and functionality. In the 
card script:

on preopenStack
   send yourMessage to this cd
end preopenStack

on yourMessage var
    if var = 5 then close this stack -- some condition to exit 
    put random(9) into var
    put var --just to see it
    send yourMessage && var to this card in 2 seconds -- your timing here
end yourMessage

Craig Newman

In a message dated 9/25/09 1:51:46 PM, jmyepes at mac.com writes:


> The process need every x time check or perform some action. But each time
> that the process run the x var will be randomized and execute the process
> depending the last x value.
> 




More information about the use-livecode mailing list