Posted 13 March 2014 - 06:35 AM
Please help me!! I am currently working for my own os but I can't press the [CMD] Program please help.
Here's the code.
If you have a great answer I would glad to hear it.
Here's the code.
function main()
term.setBackgroundColor(colors.white)
term.clear()
term.setCursorPos(1,1)
os.sleep(0.1)
while true do
term.setBackgroundColor(colors.lightBlue)
term.clear()
paintutils.drawLine(1, 1, screenX, 1, colors.white)
term.setTextColor(colors.black)
term.setCursorPos(1,1)
print("System Applications")
term.setCursorPos(30,1)
term.setTextColor(colors.black)
print("[X]")
term.setTextColor(colors.black)
term.setCursorPos(1,4)
print("[CMD]")
local event, button, X, Y = os.pullEventRaw("mouse_click")
if X >= 1 and X <= 10 and Y == 4 and button == 1 then
shell.run("/isaacos/Programs/cmd.lua")
elseif X >= 30 and X <= 33 and Y == 1 and button == 1 then
shell.run("/isaacos/system/x16/os.lua")
end
end
end
main()
screenX, screenY = term.getSize()
If you have a great answer I would glad to hear it.