Restart a handler by a message
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Restart a handler by a message
How do I pause a handler and continue it by using: wait until ..... some message is sent from another handler or button script?
Dear ToreT,
I would have the "other" handler set a custom property or global variable. This allows you to do the following
on foo
-- do something here
wait until the cCustomProp of me is true with messages
-- continue here
end foo
In the "other" handler you would have:
on bla
-- do something and set property when ready
set the cCustomProp of me to true
end bla
I don't know whether this is helpful. Maybe you want to post your scripts or explain a little more about what you are doing?
Best regards,
Mark
I would have the "other" handler set a custom property or global variable. This allows you to do the following
on foo
-- do something here
wait until the cCustomProp of me is true with messages
-- continue here
end foo
In the "other" handler you would have:
on bla
-- do something and set property when ready
set the cCustomProp of me to true
end bla
I don't know whether this is helpful. Maybe you want to post your scripts or explain a little more about what you are doing?
Best regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode