LC speaking with other apps

Monte Goulding monte at sweattechnologies.com
Mon Feb 11 14:46:19 EST 2013


If an external won't work you could write it as a small app then open process for update and read / write to the process.

On 12/02/2013, at 3:45 AM, Thomas McGrath III <mcgrath3 at mac.com> wrote:

> For the current project I am working on I am trying to get a lower level Key Trapper/Key Monitor written as an External for LC for Mac and for Windows and one problem I am encountering is with the requirement on the Windows External side to have to use VC++. Since this could be accomplished as a Windows service or as a DLL and that we do have an example of this in C# I am looking at having to translate that to VC++. I am currently looking into this but my question is: What ways and how many ways are there in Windows for having a lower level application like this communicate with LC and vice versa? I need that to be a two way communication. 
> 
> I need the key trapper to say to LC "hey this key was pressed." "what do you want me to do with it?" and then for LC to say to the key trapper "thanks don't send it on" or "thanks send it on" or "hey, if this key is pressed in the future go ahead and send it first and then just notify me"
> 
> On the Mac I think we have to use xCode to make use of the Apple libraries for key events and so an external seems the way to go, rather than building an separate app and then figuring out how to get LC to communicate with it and vice versa. Also, Applescript has some limited functionality that LC does not as far as keys that are pressed and communicating with LC but I would rather not use AS to that extent for this project. But I am not versed enough with the available ways to do this in Windows.
> 
> Any ideas or suggestions are welcome.
> 
> Tom
> 
> -- Tom McGrath III
> http://lazyriver.on-rev.com
> mcgrath3 at mac.com
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

--
Monte Goulding

M E R Goulding - software development services
mergExt - There's an external for that!








More information about the use-livecode mailing list