CCninja86

Untitled

Nov 21st, 2012
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. print ("Menu-Click the Number")
  2. print ("1.Option 1")
  3. print ("2.Option 2")
  4. print ("3.Option 3")
  5.  
  6. while true do
  7. local event, button, X, Y = os.pullEvent("mouse_click")
  8. XY = X..","..Y
  9.  
  10. if XY == "1,2" and button == 1 then
  11. -- Do stuff for Option 1- Left Click
  12. break
  13. end
  14.  
  15.  
  16. if XY == "1,3" and button == 1 then
  17. -- Do stuff for Option 2- Left Click
  18. break
  19. end
  20.  
  21.  
  22. if XY == "1,4" and button == 1 then
  23. -- Do stuff for Option 3- Left Click
  24. break
  25. end
  26.  
  27. if XY == "1,2" and button == 2 then
  28. -- Do stuff for Option 1- Right Click
  29. break
  30. end
  31.  
  32.  
  33. if XY == "1,3" and button == 2 then
  34. -- Do stuff for Option 2- Right Click
  35. break
  36. end
  37.  
  38.  
  39. if XY == "1,4" and button == 2 then
  40. -- Do stuff for Option 3- Right Click
  41. break
  42. end
  43. end
Add Comment
Please, Sign In to add comment