Page 1 of 1

closing external program

Posted: Sun Apr 27, 2014 10:09 pm
by Da_Elf
Im not sure if this s a beginners question or not but i just started learning livecode yesterday.

Ive got a program running now which when i click "connect to server" love code will automatically launch casparCG server. Ive got some buttons setup to play some videos through casparCG. When i click disconnect though ive got the code to disconnect the socket but i want to also be able to close the casparCG window as well

Re: closing external program

Posted: Sun Apr 27, 2014 10:43 pm
by Simon
Hi Da_Elf,
Welcome to the forum :)
... love code will automatically launch...
Yes I do! :)

On Windows it would be
shell("taskkill /F casparCG.exe")
Or something like that, not sure of the name of the running app.

Google "taskkill"

Simon