os.pullEvent = os.pullEventRaw
term.setTextColor(colors.white)
shell.run("/Laby/Desktop")
term.setBackgroundColor(512)
sleep(0)
term.setCursorPos(1,19)
term.setBackgroundColor(colors.green)
write(" Menu ")
term.setBackgroundColor(colors.blue)
write("                                              ")
term.setBackgroundColor(colors.blue)


function Zeit()
         pzeit = os.time()
	     pzeit = textutils.formatTime(pzeit, true)
	return pzeit	 
end


term.setTextColor(colors.white)
while true do    
      term.setCursorPos(46,19)
      write(""..Zeit())
	  write(" ")
	  sleep(0.1)
break
end	


if fs.exists("/Laby/Icon/Skype") then
term.setCursorPos(3,2)
term.setBackgroundColor(colors.white)
write(" ")
term.setBackgroundColor(8)
write(" ")
term.setCursorPos(3,3)
term.setBackgroundColor(8)
write(" ")
term.setBackgroundColor(colors.white)
write(" ")
term.setBackgroundColor(512)
term.setCursorPos(2,4)
term.setTextColor(colors.white)
print("Skype")
else
end





if fs.exists("/Laby/Icon/Word") then
term.setCursorPos(3,7)
term.setBackgroundColor(colors.yellow)
write(" ")
term.setBackgroundColor(colors.white)
write(" ")
term.setCursorPos(3,8)
term.setBackgroundColor(colors.white)
write(" ")
term.setBackgroundColor(colors.yellow)
write(" ")
term.setBackgroundColor(512)
term.setCursorPos(2,9)
term.setTextColor(colors.white)
print("WordPad")
else
end




if fs.exists("/Laby/Icon/calc") then
term.setCursorPos(3,12)
term.setBackgroundColor(128)
write(" ")
term.setBackgroundColor(256)
write(" ")
term.setCursorPos(3,13)
term.setBackgroundColor(256)
write(" ")
term.setBackgroundColor(128)
write(" ")
term.setBackgroundColor(512)
term.setCursorPos(2,14)
term.setTextColor(colors.white)
print("Rechner")
else
end





while true do
local event, button, X, Y = os.pullEvent("mouse_click")
XY = X..","..Y

if XY == "2,19" and button == 1 then
shell.run("/Laby/Start")
break
end

if XY == "3,19" and button == 1 then
shell.run("/Laby/Start")
break
end

if XY == "4,19" and button == 1 then
shell.run("/Laby/Start")
break
end

if XY == "5,19" and button == 1 then
shell.run("/Laby/Start")
break
end


if XY == "3,2" and button == 1 and fs.exists("/Laby/Downloads/Skype") then
term.setTextColor(colors.white)
shell.run("Laby/Downloads/Skype")
break
end

if XY == "4,2" and button == 1 and fs.exists("/Laby/Downloads/Skype") then
term.setTextColor(colors.white)
shell.run("Laby/Downloads/Skype")
break
end

if XY == "3,3" and button == 1 and fs.exists("/Laby/Downloads/Skype") then
term.setTextColor(colors.white)
shell.run("Laby/Downloads/Skype")
break
end

if XY == "4,3" and button == 1 and fs.exists("/Laby/Downloads/Skype") then
term.setTextColor(colors.white)
shell.run("Laby/Downloads/Skype")
break
end






if XY == "3,7" and button == 1 and fs.exists("/Laby/Downloads/Word") then
term.setTextColor(colors.white)
shell.run("Laby/Downloads/Word")
break
end

if XY == "4,7" and button == 1 and fs.exists("/Laby/Downloads/Word") then
term.setTextColor(colors.white)
shell.run("Laby/Downloads/Word")
break
end

if XY == "3,8" and button == 1 and fs.exists("/Laby/Downloads/Word") then
term.setTextColor(colors.white)
shell.run("Laby/Downloads/Word")
break
end

if XY == "4,8" and button == 1 and fs.exists("/Laby/Downloads/Word") then
term.setTextColor(colors.white)
shell.run("Laby/Downloads/Word")
break
end






if XY == "3,12" and button == 1 and fs.exists("/Laby/Downloads/calc") then
term.setTextColor(colors.white)
shell.run("Laby/Downloads/calc")
break
end

if XY == "3,13" and button == 1 and fs.exists("/Laby/Downloads/calc") then
term.setTextColor(colors.white)
shell.run("Laby/Downloads/calc")
break
end

if XY == "4,12" and button == 1 and fs.exists("/Laby/Downloads/calc") then
term.setTextColor(colors.white)
shell.run("Laby/Downloads/calc")
break
end


if XY == "4,13" and button == 1 and fs.exists("/Laby/Downloads/calc") then
term.setTextColor(colors.white)
shell.run("Laby/Downloads/calc")
break
end





end















term.setBackgroundColor(512)
term.setCursorPos(1,1)
write("")