External Callbacks?

Trevor DeVore lists at mangomultimedia.com
Mon Oct 25 11:30:36 EDT 2004


On Oct 25, 2004, at 6:20 AM, K wrote:

> I have noted the function that sends command to the MC engine from a 
> external.   I am wondering how one would send a message to a specific 
> object (button, stackj, card)?

Here is a method similar to how I do it in the QT external.  This is 
based off of some code Tuviah sent me.

int retvalue = 0;
char	mcmessage[1024];

SetGlobal("myGlobalVariable",tmessage,&retvalue);

snprintf(mcmessage, 1024, "global myGlobalVariable;try;send \"%s 
myGlobalVariable\" to %s in 0 seconds;catch errno;end try;put 0 into 
myGlobalVariable", messagename, objectname);

SendCardMessage(mcmessage, &retvalue);

Where objectname, messagename nad tmessage defined as char *.


-- 
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com



More information about the use-livecode mailing list