Can I set up a delayed message queue?
William Prothero
prothero at earthednet.org
Thu May 7 14:41:34 EDT 2015
Scott:
Yes, I had tried to send multiple delayed messages and now I find that the simple way just works. I can set more than one delayed send message and they seem to queue properly. Sorry for the goof. I guess I’m jumping in to ask a question a bit too fast. I’ll be better.
Best,
Bill
> On May 7, 2015, at 11:12 AM, Scott Rossi <scott at tactilemedia.com> wrote:
>
> Perhaps I'm not understanding your comment, but I don't believe it's
> correct. Try the following on a card (one button, one field):
>
> [ button script ]
>
> on mouseUp
> repeat 3
> send "doStuff" to me in 1 second
> wait 500 millisecs with messages
> end repeat
> end mouseUp
>
>
> on doStuff
> put "got it" & cr after fld 1
> end doStuff
>
> You should get 3 lines placed in the field.
>
>
> If you're doing anything that causes a blocking action in LiveCode (such
> as displaying the answer dialog), it's possible that a sent-in-time
> message could get skipped, but for the most part, you should be able to
> queue up several of the same message, each with its own id.
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
>
>
>
> On 5/7/15, 10:24 AM, "William Prothero" <prothero at earthednet.org> wrote:
>
>> Folks:
>> I have several timed situations in my app. They run specific handlers in
>> a set number of seconds. It looks to me like there can only be a single
>> invocation of ³send xyz in myDelay seconds² at a time.
>>
>> I¹m thinking of setting up a queue to do this. I¹m thinking of a handler
>> that sends a message to itself every second, then activates various
>> handlers when their delay time is satisfied. So I¹d need to manage these
>> times in my own handler. I can do this, but wonder if I¹m on the right
>> track.
>>
>> Best,
>>
>> Bill
>>
>> William A. Prothero
>> http://es.earthednet.org/
>>
>> _______________________________________________
>> 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
>
>
>
> _______________________________________________
> 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