window:277: vm error: java.lang.ArrayIndexOutOfBoundsExeption: 256here is my examplecode:
Program1:
term.clear()
term.setCursorPos(1,1)
print("X Click here")
print("Program 1")
while true do
local event, button, X, Y = os.pullEvent("mouse_click")
XY = X..","..Y
if XY == "1,1" and button == 1 then
shell.run("Program2")
break
end end
Program2:term.setCursorPos(1,1)
print("X Click here")
print("Program 2")
while true do
local event, button, X, Y = os.pullEvent("mouse_click")
XY = X..","..Y
if XY == "1,1" and button == 1 then
shell.run("Program1")
break
end end











