while true do
e, p1, p2, p3, p4 = os.pullEvent()
if(e == "modem_message") then
print(p4)
elseif(e == "key") then
if(p1 == 28) then
send()
else
end
end
end
Thanks.
- Mackan
Posted 27 March 2015 - 02:08 PM
while true do
e, p1, p2, p3, p4 = os.pullEvent()
if(e == "modem_message") then
print(p4)
elseif(e == "key") then
if(p1 == 28) then
send()
else
end
end
end
Posted 27 March 2015 - 02:17 PM
if p1 == keys.enter then
Posted 27 March 2015 - 03:11 PM
Edited by Mackan90096, 27 March 2015 - 03:33 PM.
Posted 27 March 2015 - 03:52 PM
Posted 27 March 2015 - 03:53 PM
local event, key = os.pullEvent("key")
if key == keys.a then
...
end
Posted 27 March 2015 - 03:54 PM
Posted 28 March 2015 - 12:04 AM
while true do
e, p1, p2, p3, p4 = os.pullEvent()
if(e == "modem_message") then
print(p4)
elseif(e == "key") then
if(p1 == keys.enter) then
send()
elseif(p1 == keys.backspace) then
-- do backspace stuff
end
elseif(e == "char") then
-- add character to string variable
end
end
0 members, 2 guests, 0 anonymous users