Page 1 of 1

Restart a handler by a message

Posted: Fri Feb 23, 2007 4:41 pm
by ToreT
How do I pause a handler and continue it by using: wait until ..... some message is sent from another handler or button script?

Posted: Fri Feb 23, 2007 6:17 pm
by Mark
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

Posted: Fri Feb 23, 2007 7:29 pm
by ToreT
Hi,

thanks, I think your answer is relevant, didn not work right away. Have to try more tomorrow, now I have to go and listen to some JAZZ with my woman.

Have a nice evening
Tore