Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- tt = 1
- function input_buffer()
- -- while isUsing and not Options do
- while true do
- --sleep(0)
- buff_ev, grhshsr, wbxPos, wbyPos = os.pullEvent()
- if buff_ev == "mouse_click" then
- print(buff_ev)
- buff_mouse = 1
- buff_xPos = wbxPos
- buff_yPos = wbyPos
- print(buff_yPos)
- --break
- else
- end
- end
- end
- function time_refresh()
- --time start
- --redrawTimer = os.startTimer(.83)
- redrawTimer = os.startTimer(.1)
- time_nospace_zero = string.gsub(textutils.formatTime(os.time(), false), " ", "")
- --tt = tt + 1
- -- if tt == 100 then
- -- tt = 1
- print(textutils.formatTime(os.time(), false))
- --end
- coroutine.yield()
- end
- parallel.waitForAny(input_buffer, time_refresh)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement