Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Teststcript by Muzze77--
- shell.run("clear")
- eingabe = 0
- sit = 0
- a = 0
- b = 0
- c = 0
- function numpad ()
- shell.run("clear")
- term.setBackgroundColor(colors.blue)
- term.setCursorPos(14, 3)
- print("123")
- term.setCursorPos(14, 4)
- print("456")
- term.setCursorPos(14, 5)
- print("789")
- term.setCursorPos(14, 6)
- print("*0#")
- end
- function Eingabe2 ()
- event,side,x,y = os.pullEvent()
- if event == "monitor_touch" then
- if x == 14 and y == 3 then
- sit = sit + 1
- if sit == 1 then
- a = 1
- write("1")
- elseif sit == 2 then
- b = 1
- write("1")
- elseif sit == 3 then
- c = 1
- write("1")
- end
- sit = 0
- elseif x == 15 and y == 3 then
- sit = sit + 1
- if sit == 1 then
- a = 2
- write("2")
- elseif sit == 2 then
- b = 2
- write("2")
- elseif sit == 3 then
- c = 2
- write("2")
- end
- sit = 0
- end
- end
- end
- function Eingabe1 ()
- event,side,x,y = os.pullEvent()
- if event == "monitor_touch" then
- if x == 14 and y == 3 then
- shell.run("clear")
- print("Wie viel willst du einzahlen?")
- Eingabe2()
- end
- end
- end
- while true do
- term.setCursorPos(1, 1)
- print("Abheben[1], Einzahlen[2], Kontostand[3]")
- Eingabe1()
- numpad()
- sleep(0.02)
- end
Add Comment
Please, Sign In to add comment