Jump to content




Locking Computers


  • You cannot reply to this topic
6 replies to this topic

#1 StevenW129

  • New Members
  • 6 posts

Posted 17 September 2012 - 07:13 PM

Hey,

I want to lock the computer from any use so like have a program running and it to remove the ability to type. Whats the code for that because I already know the code to stop people terminating it, also I would like the code to stop the rebooting of it if possible. Cheers!

#2 GopherAtl

  • Members
  • 888 posts

Posted 17 September 2012 - 07:15 PM

no way to override that from in cc. Not positive if it's even handled in the lua bios code or in java, as the idea is that terminate is a software-thing, like force-quitting a program, while reboot is a hardware thing, like physically turning the computer off and back on.

#3 Velthos

  • New Members
  • 8 posts

Posted 17 September 2012 - 07:16 PM

Don't think there is a code to disallow rebooting/shutdown. But while the code is running, people shouldn't be able to type.

#4 StevenW129

  • New Members
  • 6 posts

Posted 17 September 2012 - 07:18 PM

I have a monitor with text in the startup and i wanna be able to remove the ability to type whiles its running

#5 EmTeaKay

  • Members
  • 115 posts

Posted 17 September 2012 - 07:21 PM

Use this to make it untypeable until the computer restarts.
sleep()
Or use this for an amount of seconds.
sleep(1)

#6 ImNutzForCoal

  • New Members
  • 15 posts

Posted 19 September 2012 - 10:36 AM

type "edit reboot"

In program, type

term.clear()
term.setCursorPos(1,1)
print("Restarts are unavailable.")

#7 Luanub

    Lua Nub

  • Members
  • 1,135 posts
  • LocationPortland OR

Posted 19 September 2012 - 10:48 AM

View PostImNutzForCoal, on 19 September 2012 - 10:36 AM, said:

type "edit reboot"

In program, type

term.clear()
term.setCursorPos(1,1)
print("Restarts are unavailable.")

That won't work if they use ctrl+r or ctrl+s. There isn't anything you can really do to prevent someone using those since they are hard coded into CC.

The best thing to do is setup ctrl+t and disk boot protection on that computer. That way if the do shut it down or restart it the worse thing that can happen is the program starts over.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users