Creating a callback mechanism for externals.

Mark Wieder mwieder at
Tue Feb 17 13:19:17 EST 2009


As you've noted, EvalExpr() isn't really designed to send messages. My
take is that it's less like a "do" command and more like the engine
running a line of code, evaluating the expressions along the way to
return a result. So here are two ideas off the top of my head (both

1. change the syntax of your EvalExpr parameter to:
return "send" && quote & outraMsg & quote && "to button id 1010 of
card id 1002 of stack" && quote &
"/home/soapdog/Desktop/ExternalsEnvironmentV3/httpserver/test.rev" &

2. if the recipient of the message (button id 1010 etc) is going to be
hardcoded into the external, why not just use SendCardMessage, and in
the stack script (or some backscript) have a handler for outraMsg that
does the send to the button?

-Mark Wieder
 mwieder at

More information about the Use-livecode mailing list