Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function queueWord(lol)
- local r = 1
- if lol == nil then
- return false
- end
- num = tonumber(string.len(lol))
- if num == nil then
- return false
- end
- for i=1, num do
- local currentletter = string.sub(lol, r, r)
- os.queueEvent("char", currentletter)
- r = r + 1
- end
- end
- function queueEntry(lol)
- local r = 1
- if lol == nil then
- return false
- end
- num = tonumber(string.len(lol))
- if num == nil then
- return false
- end
- for i=1, num do
- local currentletter = string.sub(lol, r, r)
- os.queueEvent("char", currentletter)
- r = r + 1
- end
- os.queueEvent("key", 28)
- end
- function tokey(stringchar)
- return keys[stringchar] or false
- end
- function tochar(numkey)
- return keys.getName(numkey) or false
- end
Advertisement
Add Comment
Please, Sign In to add comment