Advertisement
Asbetha

Desktop

Feb 6th, 2014
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. term.clear()
  3. term.setBackgroundColor(512)
  4. print(" ")
  5. print(" ")
  6. print(" ")
  7. print(" ")
  8. print(" ")
  9. print(" ")
  10. print(" ")
  11. print(" ")
  12. print(" ")
  13. print(" ")
  14. print(" ")
  15. print(" ")
  16. print(" ")
  17. print(" ")
  18. print(" ")
  19. print(" ")
  20. print(" ")
  21. term.setBackgroundColor(colors.blue)
  22. term.setTextColor(colors.white)
  23. print(" ")
  24.  
  25. term.setCursorPos(1,18)
  26. term.setBackgroundColor(008800)
  27. term.setTextColor(colors.white)
  28. write(" START ")
  29.  
  30. term.setCursorPos(1,1)
  31.  
  32. while true do local event, button, X, Y = os.pullEvent("mouse_click")
  33. XY = X..","..Y
  34. if XY == "1,18" and button == 1 then
  35. term.clear()
  36. shell.run("programs")
  37. end
  38. if XY == "2,18" and button == 1 then
  39. term.clear()
  40. shell.run("programs")
  41. end
  42. if XY == "3,18" and button == 1 then
  43. term.clear()
  44. shell.run("programs")
  45. end
  46. if XY == "4,18" and button == 1 then
  47. term.clear()
  48. shell.run("programs")
  49. end
  50. if XY == "5,18" and button == 1 then
  51. term.clear()
  52. shell.run("programs")
  53. end
  54. if XY == "6,18" and button == 1 then
  55. term.clear()
  56. shell.run("programs")
  57. end
  58. if XY == "7,18" and button == 1 then
  59. term.clear()
  60. shell.run("programs")
  61. end
  62. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement