Advertisement
Guest User

startup

a guest
Dec 1st, 2016
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.80 KB | None | 0 0
  1. time = os.time()
  2. rednet.open("back")
  3. image = paintutils.loadImage("iphone")
  4. paintutils.drawImage(image,1,1)
  5. term.setCursorPos(5,8)
  6. term.write("1")
  7. term.setCursorPos(9,8)
  8. term.write("2")
  9. term.setCursorPos(6,4)
  10. term.write(time.." heure")
  11. term.setCursorPos(13,8)
  12. term.write("3")
  13. term.setCursorPos(5,11)
  14. term.write("4")
  15. term.setCursorPos(9,11)
  16. term.write("5")
  17. term.setCursorPos(13,11)
  18. term.write("6")
  19. term.setCursorPos(5,14)
  20. term.write("7")
  21. term.setCursorPos(9,14)
  22. term.write("8")
  23. term.setCursorPos(13,14)
  24. term.write("9")
  25. term.setCursorPos(8,17)
  26. term.write("0")
  27.  
  28.  
  29.  
  30. while true do
  31.  event,button ,xpos,ypos = os.pullEvent("mouse_click")
  32.  print("x pos ="..xpos)
  33.  print("y pos ="..ypos)
  34.   if ((xpos>3)and (xpos<7)) and ((ypos>7) and (ypos<10)) then
  35.   code=1
  36.  print(code)
  37.   end
  38.         end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement