by kaeza » Sat May 25, 2013 03:02
First of all, the program you want to control must support some protocol (sockets, pipes, command line, ...), then you need to use that protocol.
For example, most media players open the file/URL you pass it on the command line in an already running instance, and some also have a --stop command line switch of some sort.
EDIT: Again, this has portability problems, and will only work in singleplayer (how do you expect to control what program runs in the client machine in the case of multiplayer?).
Last edited by
kaeza on Sat May 25, 2013 03:03, edited 1 time in total.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!
Check out my stuff! | Donations greatly appreciated!
PayPal | BTC:
1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2