Running Processes in the background
Ralph DiMola
rdimola at evergreeninfo.net
Mon Jan 18 10:14:21 EST 2016
Send in time will do it. You can also get the message ID to cancel the
pending message.
Example(not tested)
Start up the timers(messages) in the main startup code:
Send "testit to me in 1 minute
Send "testitlong to me in 10 minutes
Then use 2 handlers to receive the messages.
On testit
If some condition is true then do something
Send "testit to me in 1 minutes
End on testit
On testitlong
If some condition is true then do something
Send "testitlong to me in 10 minutes
End on testitlong
Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net
-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of Glen Bojsza
Sent: Monday, January 18, 2016 10:02 AM
To: How to use LiveCode
Subject: Running Processes in the background
Hello,
Are there any examples of how to run a process in the background in an
application?
I need to have two timer processes run when the user is using the
application.
The processes need to check for certain trigger values every
- 1 minute
- 10 minutes
If the trigger value(s) exist then the application takes the user to a
different part in the application.
Everything I have read is that LC is not multithreaded but there is a way to
generate these as loops that can check for these values?
Any direction or examples are appreciated.
regards,
Glen
_______________________________________________
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