SHOW:
|
|
- or go back to the newest paste.
1 | local m = peripheral.wrap("top") | |
2 | - | m.setTextScale(2) |
2 | + | erstezahl = 0 |
3 | zweitezahl = 0 | |
4 | drittezahl = 0 | |
5 | viertezahl = 0 | |
6 | touch = 0 | |
7 | m.setTextScale(1) | |
8 | m.setCursorPos(1, 1) | |
9 | m.write("Passwort:") | |
10 | m.setCursorPos(1, 2) | |
11 | m.write("1") | |
12 | m.setCursorPos(2, 2) | |
13 | m.write("2") | |
14 | m.setCursorPos(3, 2) | |
15 | m.write("3") | |
16 | m.setCursorPos(1, 3) | |
17 | m.write("4") | |
18 | m.setCursorPos(2, 3) | |
19 | m.write("5") | |
20 | m.setCursorPos(3, 3) | |
21 | m.write("6") | |
22 | m.setCursorPos(1, 4) | |
23 | m.write("7") | |
24 | m.setCursorPos(2, 4) | |
25 | m.write("8") | |
26 | - | if x == 1 and y == 2 then |
26 | + | |
27 | - | set CursorPos(1, 1) |
27 | + | |
28 | while true do | |
29 | event,side,x,y = os.pullEvent() | |
30 | if event == "monitor_touch" then | |
31 | if x == 1 and y == 2 and touch == 0 then | |
32 | erstezahl + 1 and touch + 1 | |
33 | ||
34 | ||
35 | end | |
36 | end | |
37 | end |