Advertisement
BruceWplays

testpoll

Aug 14th, 2022 (edited)
1,026
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.95 KB | None | 0 0
  1.   while true do  
  2.     tt = 1  
  3.         function input_buffer()
  4.  
  5. -- while isUsing and not Options do
  6.     while true do
  7.    
  8.    
  9. --sleep(0)
  10.  buff_ev, grhshsr, wbxPos, wbyPos = os.pullEvent()
  11.    if buff_ev == "mouse_click" then
  12.     print(buff_ev)
  13.         buff_mouse = 1
  14.             buff_xPos = wbxPos
  15.             buff_yPos = wbyPos
  16.     print(buff_yPos)
  17.      --break
  18.      else  
  19.        
  20.     end
  21.     end    
  22. end
  23.        
  24.        
  25.         function time_refresh()
  26.       --time start
  27.  
  28.        
  29.        
  30.     --redrawTimer = os.startTimer(.83)
  31.    redrawTimer = os.startTimer(.1)
  32.        
  33.        
  34.       time_nospace_zero = string.gsub(textutils.formatTime(os.time(), false), " ", "")  
  35. --tt = tt + 1
  36.        -- if tt == 100 then
  37.       -- tt = 1
  38. print(textutils.formatTime(os.time(), false))
  39.             --end
  40.         coroutine.yield()
  41.              
  42.      
  43.     end
  44.        
  45.    parallel.waitForAny(input_buffer, time_refresh)    
  46.     end
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement