29 posts
Posted 24 November 2012 - 06:08 AM
ok i have my password door, and when i make a input, be right or wrong theres the 3 second sleep and then a quick flash of blank before is reboots. is there a way insted of os.reboot to make it run the startup so it dosent actualy restart the computer ?
3790 posts
Location
Lincoln, Nebraska
Posted 24 November 2012 - 06:17 AM
I believe this is actually intended behavior. It used to be that os.reboot() would be instant, but since a whole lot of computers doing that on a server can cause massive lag, it was slowed down intentionally. Currently, os.reboot() is the fastest way to restart your machine without causing possible recursion errors.
1688 posts
Location
'MURICA
Posted 24 November 2012 - 06:18 AM
For your situation, it'd probably be best to use a loop.
-- your os.pullEvent = os.pullEventRaw line goes here if you have one
while true do
-- your password stuff
end
29 posts
Posted 24 November 2012 - 06:26 AM
For your situation, it'd probably be best to use a loop.
-- your os.pullEvent = os.pullEventRaw line goes here if you have one
while true do
-- your password stuff
end
exacly what i was looking for ;)/>/> thankyou
4 posts
Posted 25 November 2012 - 02:07 AM
You could try
shell.run("startup")
I think that'd work.