ex:
Please enter the password:
(after i enter the correct password)
Please enter the password:
****
Please enter the password:
_
any idea to clear previous text ? and where i should put them ?
here's my script
Posted 16 June 2012 - 04:12 PM
Posted 16 June 2012 - 04:15 PM
Posted 16 June 2012 - 04:23 PM
Pinkishu, on 16 June 2012 - 04:15 PM, said:
Posted 16 June 2012 - 04:45 PM
while true do term.clear() term.setCursorPos(1,1) term.setCursorBlink(true) textutils.slowWrite("Welcome... nPassword: ") local ePass = read("*") term.clear() term.setCursorPos(1,1) if ePass == "the password" then redstone.setOutput("back",true) sleep(2) redstone.setOutput("back",false) end endP.S: 'n' is a new line, it won't show.
Posted 17 June 2012 - 02:28 AM
thesbros, on 16 June 2012 - 04:45 PM, said:
while true do term.clear() term.setCursorPos(1,1) term.setCursorBlink(true) textutils.slowWrite("Welcome... nPassword: ") local ePass = read("*") term.clear() term.setCursorPos(1,1) if ePass == "the password" then redstone.setOutput("back",true) sleep(2) redstone.setOutput("back",false) end endP.S: 'n' is a new line, it won't show.
Posted 17 June 2012 - 02:39 AM
A2Creativity, on 17 June 2012 - 02:28 AM, said:
Posted 17 June 2012 - 02:43 AM
MysticT, on 17 June 2012 - 02:39 AM, said:
A2Creativity, on 17 June 2012 - 02:28 AM, said:
Posted 17 June 2012 - 07:20 AM
os.shutdown()That will shut down the computer.
Posted 17 June 2012 - 04:31 PM
A2Creativity, on 17 June 2012 - 02:43 AM, said:
MysticT, on 17 June 2012 - 02:39 AM, said:
A2Creativity, on 17 June 2012 - 02:28 AM, said:
0 members, 1 guests, 0 anonymous users