Enclose tTest in quotes in the send otherwise it is looking for the variable tTest.
send "tTest" to me in 1 minute Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Glen Bojsza Sent: Monday, January 18, 2016 12:20 PM To: How to use LiveCode Subject: Re: Running Processes in the background Hi Ralph, I tried an example outlined by you and I keep getting en error where it can't find the handler? *on* mouseUp *put* 1 into x *set* the stimer of this stack to "false" *send* tTest to me in 1 minute **this is where the first error occurs? *repeat* for 30 times *if* the stimer of this stack is true *then* *put* "reached goal" into fld counter *else* *put* x + 6 into x *put* x into fld counter *wait* for 1 second *end* *if* *end* *repeat* *end* mouseUp *on* tTest *put* "made it to tTest with x = " & x & cr *send* tTest to me in 1 minutes *end* tTest On Mon, Jan 18, 2016 at 10:14 AM, Ralph DiMola <rdim...@evergreeninfo.net> wrote: > 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 > rdim...@evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-boun...@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@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode