Jump to content




Stop Your Program Being Terminated


3 replies to this topic

#1 libraryaddict

  • New Members
  • 195 posts

Posted 20 February 2012 - 04:35 AM

I have a Password protection system to unlock my computer
But I know how to stop Ctrl+T terminating my password program as if it didnt exist.

People in IRC suggested os.pullEventRaw()
However I have no idea how to implement it and all my efforts resulted in a computer crash.

Would someone be able to post a script or something which will cancel Ctrl+T?

#2 luza

  • New Members
  • 43 posts
  • LocationGermany

Posted 20 February 2012 - 09:05 AM

you could for example put your password system into another file.
And into the startupsystem you write:
while true do
shell.run("check")  --for "check" you write the name of your passwordsystem file.
end

that would be the simpliest method.

You could also change the os.pullEvent() method but I think in your case it's not necessary.

#3 rockymc

  • Members
  • 103 posts

Posted 20 February 2012 - 10:42 AM

I guess it's something like

e, p == os.pullEventRaw()
if e == "terminate" then
pcall()
print( "Too bad." )
end


#4 Espen

    Curious Explorer

  • Members
  • 708 posts

Posted 20 February 2012 - 12:09 PM

There's a thread called "CTRL+T" where this question has already been answered:
http://www.computerc.../topic/61-ctrlt





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users