Posted 15 October 2014 - 03:31 PM
So, I'm having a little trouble getting my code to work, I've been using computercraft for a year now, but i still do not know how to remotely terminate a program from within another program.
I'm using an external program that makes images into ones that can be viewed in computercraft, and it works fine, I've converted a few images, but now, I'm trying to put them into a slideshow, and maby a very low fps movie. The program that it uses to display the images is npaintpro.
Right now, the best results I've had using this is with the bg program, that opens another tab, but i need to know how to close these tabs and the programs running within.
Here's the code that you will all facepalm at.
shell.run(bg katy) – Katy is an image of Katy Perry :3
sleep(10)
mon.clear() – I specified what mon is in the startup.
shell.run("bg craftblock")
Unsurprisingly, this does not work, all it leaves is a flashing image of Katy perry and the other image, without deleting the Katy perry image.
I'm using an external program that makes images into ones that can be viewed in computercraft, and it works fine, I've converted a few images, but now, I'm trying to put them into a slideshow, and maby a very low fps movie. The program that it uses to display the images is npaintpro.
Right now, the best results I've had using this is with the bg program, that opens another tab, but i need to know how to close these tabs and the programs running within.
Here's the code that you will all facepalm at.
shell.run(bg katy) – Katy is an image of Katy Perry :3
sleep(10)
mon.clear() – I specified what mon is in the startup.
shell.run("bg craftblock")
Unsurprisingly, this does not work, all it leaves is a flashing image of Katy perry and the other image, without deleting the Katy perry image.