Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- time = os.time()
- rednet.open("back")
- image = paintutils.loadImage("iphone")
- paintutils.drawImage(image,1,1)
- term.setCursorPos(5,8)
- term.write("1")
- term.setCursorPos(9,8)
- term.write("2")
- term.setCursorPos(6,4)
- term.write(time.." heure")
- term.setCursorPos(13,8)
- term.write("3")
- term.setCursorPos(5,11)
- term.write("4")
- term.setCursorPos(9,11)
- term.write("5")
- term.setCursorPos(13,11)
- term.write("6")
- term.setCursorPos(5,14)
- term.write("7")
- term.setCursorPos(9,14)
- term.write("8")
- term.setCursorPos(13,14)
- term.write("9")
- term.setCursorPos(8,17)
- term.write("0")
- while true do
- event,button ,xpos,ypos = os.pullEvent("mouse_click")
- print("x pos ="..xpos)
- print("y pos ="..ypos)
- if ((xpos>3)and (xpos<7)) and ((ypos>7) and (ypos<10)) then
- code=1
- print(code)
- end
- if ((xpos>7)and (xpos<11)) and ((ypos>7) and (ypos<10)) then
- code=2
- end
- if ((xpos>11) and (xpos<15)) and ((ypos>7) and (ypos<10)) then
- code=3
- end
- if ((xpos>3)and (xpos<7)) and ((ypos>10) and (ypos<13)) then
- code=4
- end
- if ((xpos>7)and (xpos<11)) and ((ypos>10) and (ypos<13)) then
- code=5
- end
- if ((xpos>11)and (xpos<15)) and ((ypos>10) and (ypos<13)) then
- code=6
- end
- if ((xpos>3)and (xpos<7)) and ((ypos>13) and (ypos<16)) then
- code=7
- end
- if ((xpos>7)and (xpos<11)) and ((ypos>13) and (ypos<16)) then
- code=8
- end
- if ((xpos>11)and (xpos<15)) and ((ypos>13) and (ypos<16)) then
- code=9
- end
- if ((xpos>7)and (xpos<11)) and ((ypos>16) and (ypos<19)) then
- code=0
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement