Posted 23 January 2013 - 01:49 AM
Im working on a script that have some buttons that you can switch between
but if i do something like this
local sEvent, param = os.pullEvent("key")
would it be able to carry on a loop
then activate a if command
like
while true do
local message = rednet.receive() – i know there might be an error here just ignore that
local sEvent, param = os.pullEvent("key")
if(sEvent == "key") then
if(param == 200) then
term.setCursorPos(18, 10)
end
end – loop
any help would be appreciated =)
but if i do something like this
local sEvent, param = os.pullEvent("key")
would it be able to carry on a loop
then activate a if command
like
while true do
local message = rednet.receive() – i know there might be an error here just ignore that
local sEvent, param = os.pullEvent("key")
if(sEvent == "key") then
if(param == 200) then
term.setCursorPos(18, 10)
end
end – loop
any help would be appreciated =)