Posted 26 March 2016 - 10:04 AM
Hey I want to run 2 diffrent programms with a programm when i click an the X on the screen but i wont run the Programm An and Aus
An is in english on and Aus ist in english off
Thats the program that wont work
An is in english on and Aus ist in english off
Thats the program that wont work
term.clear()
term.setCursorPos(1,1)
print("X An")
term.setCursorPos(1,2)
print("X Aus")
while true do
local event, button, X,Y = os.pullEvent("mouse_click")
XY = X..","..Y
end
if XY == "1,1" and button == 1 then
term.clear()
shell.run("An")
end
if XY == "1,2" and button == 1 then
term.clear()
shell.run("Aus")
end