managing processes and stacks started by executables

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
lbtony
Posts: 35
Joined: Tue Apr 11, 2006 9:01 am

managing processes and stacks started by executables

Post by lbtony » Tue Jun 06, 2006 8:52 am

suppose I have two stacks by clicking on two standalone executable files. I want to use one stack to manage the other. So my question is, how can I send message from one to the other in this situation? How can I stop the other application using script?

Thank u......

pevensen
Posts: 21
Joined: Mon Apr 10, 2006 2:50 pm
Location: St. Louis, MO, USA
Contact:

Post by pevensen » Tue Jun 06, 2006 3:06 pm

Which platform are you suing? If Mac, you could try AppleScript.

Otherwise you could socket communication between the two. Look at open socket, write to socket, etc.
Peter Evensen
[url]http://www.PetersRoadtoHealth.com[/url]

Garrett
Posts: 386
Joined: Sat Apr 08, 2006 8:15 am
Contact:

Post by Garrett » Tue Jun 06, 2006 6:47 pm

Or you could use a text file. Control program puts commands in the
text file, program you want to control reads the text file at regular
intervals for new commands from the control program.

It's not the best way to do such a thing, but works if there's no other
way to communicate between the two programs.

-Garrett

lbtony
Posts: 35
Joined: Tue Apr 11, 2006 9:01 am

Post by lbtony » Wed Jun 07, 2006 8:35 am

Is there any scripting tool in Windows can let me send messages to runrev applications????

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5147
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Wed Jun 07, 2006 2:33 pm

You could make the two standalones communicate with each other through sockets.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply

Return to “Talking LiveCode”