Jump to content




[Question] A little question :P


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

#1 Kadix

  • Members
  • 5 posts

Posted 04 May 2013 - 05:21 PM

How can I do a print code that stays forever on the screen? And how can I make it so the person can't do CTRL + T ?

Thanks for the help :D

#2 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 04 May 2013 - 05:49 PM

What did you mean with "forever"?

the anti-terminate:
OldPullEvent = os.pullEvent --backup the os.pullEvent
os.pullEventRaw -- override the os.pullEvent
--Put this code at the top of your program

--If you want to disable the anti-terminating, do this:
os.pullEvent = OldPullEvent

I hope It's helpfull for you :)/>

#3 Kadix

  • Members
  • 5 posts

Posted 04 May 2013 - 07:18 PM

Like... It stays with a Hi that won't vanish.

#4 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 04 May 2013 - 09:47 PM

View PostFreack100, on 04 May 2013 - 05:49 PM, said:

What did you mean with "forever"?

the anti-terminate:
OldPullEvent = os.pullEvent --backup the os.pullEvent
os.pullEventRaw -- override the os.pullEvent
--Put this code at the top of your program

--If you want to disable the anti-terminating, do this:
os.pullEvent = OldPullEvent

I hope It's helpfull for you :)/>
Second line should be
os.pullEvent = os.pullEventRaw

As for the permanent text, just have it print and if you don't want it to stop and have it so you can type add this to the end:
while true do
    sleep(60)
end






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users