Posted 07 June 2013 - 12:03 PM
                Hey so i'm making a login program for startup that first writes a welcome message and asks for a input
the input is then compared to preset inputs.
Explanation this program should give acces to a game or all programs or shutdown if a i'm not logging in and nobody wants to play.
Question : I want to prevent people from using Ctrl+t but instead only unable the ctrl+T command when i'm logged in
Where should i put
os.pullEvent = os.pullEventRaw
and do i need to put some other codes?
                
            the input is then compared to preset inputs.
Explanation this program should give acces to a game or all programs or shutdown if a i'm not logging in and nobody wants to play.
Question : I want to prevent people from using Ctrl+t but instead only unable the ctrl+T command when i'm logged in
Where should i put
os.pullEvent = os.pullEventRaw
and do i need to put some other codes?
	textutils.slowPrint("Welcome Player")
	textutils.slowPrint("Type start to Play")
	write("Do You wanna play: ")
	answer = read()
	if answer == "password" then
	shell.run("clear")
	sleep(1)
	textutils.slowPrint("CraftOS 1.3")
	textutils.slowPrint("Welcome _OJ_")
	os.run("w","rom")
	if answer == "start" then
	shell.run("game")
	if answer ~= "start" then
	textutils.slowPrint("Have a Nice Day!")
	textutils.slowPrint("Shutting down computer")
	sleep(0.1)
	os.shutdown()
	end
	end
	end
 
         
                 
                