This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
DannySMc's profile picture

Title: Stop a program, when it is running

Started by DannySMc, 28 March 2013 - 09:04 AM
DannySMc #1
Posted 28 March 2013 - 10:04 AM
Okay, so i have a program called lock (it is a simple door lock and when the correct password is inputted it will do the code and shut down) now me being stupid, i did the following command:

monitor left lock

now it worked but I can't do anything with it, now when I went back to the monitor it had the following:

> monitor left lock
running lock on left monitor

Now I can't do anything with this, is there anyway I can get out of it and exit the program, the os just needs to restart, but there is no cursor set.

Also is it possible to run one program on one monitor and another on another monitor? and how do you add more connection points to my computer?
Mads #2
Posted 28 March 2013 - 10:07 AM
CTRL+R. This will completely reboot the computer. Look at the wiki.
DannySMc #3
Posted 28 March 2013 - 10:13 AM
CTRL+R. This will completely reboot the computer. Look at the wiki.

This didn't work as their is no cursor available it is just saying "running lock on left monitor"
Engineer #4
Posted 28 March 2013 - 10:23 AM
That has to be working, are you holding it simultaneously?

Try ctrl+s, the get of the gui if the screen goes blank, the re open the gui
DannySMc #5
Posted 28 March 2013 - 10:58 AM
That has to be working, are you holding it simultaneously?

Try ctrl+s, the get of the gui if the screen goes blank, the re open the gui
of course! but no it does nothing, it just stays in the program and keeps it emitted on the screen
The_Awe35 #6
Posted 28 March 2013 - 04:23 PM
unless you did

os.pullEvent() = os.pullEventRaw()

holding CTRL and t for about a sec and a half will shut the program down. There is no way (That I know of) to stop CTRL and s (still holding for a sec and a half) to not shut it down.
Engineer #7
Posted 28 March 2013 - 10:14 PM
unless you did

os.pullEvent() = os.pullEventRaw()

holding CTRL and t for about a sec and a half will shut the program down. There is no way (That I know of) to stop CTRL and s (still holding for a sec and a half) to not shut it down.
But then ctrl+R or ctrl+S work. Its hardcoded in the Java
DannySMc #8
Posted 29 March 2013 - 12:26 AM
unless you did

os.pullEvent() = os.pullEventRaw()

holding CTRL and t for about a sec and a half will shut the program down. There is no way (That I know of) to stop CTRL and s (still holding for a sec and a half) to not shut it down.
I think it froze or something? I restarted the computer and it worked fine so must of been an error, sorry guys
Apfeldstrudel #9
Posted 30 May 2013 - 12:08 PM
Opps