Using "send...in <time>" wirh private commands?
hh at livecode.org
Sun Nov 8 06:57:39 EST 2015
> Inelegant, but this seems to at least block outside callers:
> on SomeTimer
> put item 1 of line -2 of the executionContexts into tCaller
> if (tCaller is not empty) AND (tCaller <> the long id of me) then
> exit SomeTimer
> end if
> send "SomeTimer" to me in 500 millisecs
> end SomeTimer
The empty tCaller will create problems.
What's wrong with this consideration?
A message is "private" with respect to "me", if the *TOP* of the message stack is me:
It works for me to have true
(the long id of me is item 1 of the executionContexts)
for such a 'private' timer construct.
More information about the use-livecode