Posted 01 May 2013 - 12:38 PM
i have been making my first os on the regular computer. after the login screen it goes to the desktop i made that has a couple of different shortcuts to different apis that i made by pressing a single key. i want to add a clock in the bottom right corner of the desktop (which i already implemented in it) while the other things for the shortcuts are still able to be used/pressed. the problem is that when the clock is in the coding i cant press the shortcuts. here is the code:
the clock it shown where i labeled it. the gui looks funny but thats because of the weird spacing.
can anyone fix this up for me so that it works?
term.clear()
term.setCursorPos(1 ,1 )
print ("[][][][][][][][][][][][][][][][][][][][][][][][][]")
print ("[]desktop []")
print ("[] HELLO MASTER []")
print ("[] DO WHAT YOU PLEASE []")
print ("[] _________ ___________ __________ []")
print ("[] [ 'e' ] [ '-' ] [ 'g' ] []")
print ("[] [welcome] [animation] [rpg game] []")
print ("[] []")
print ("[] ___________ ______ ______ []")
print ("[] [ 's' ] ['h' ] [any ] []")
print ("[] [shut down] [help] [exit] []")
print ("[] []")
print ("[] []")
print ("[]PRESS 'key' []")
print ("[]______________________________________________[]")
print ("[]START| |er-76%|'t'ime[]")
print ("[][][][][][][][][][][][][][][][][][][][][][][][][]")
while true do -- beginning of clock
term.setCursorPos(36,16)
local nTime = os.time()
print( "Time: "..textutils.formatTime( nTime, false ) )
os.sleep(1)
end -- end of clock
local event, param1 = os.pullEvent ("char")
if param1 == "e" then
os.loadAPI ("hello")
else
end
if param1 == "-" then
os.loadAPI ("-")
else
end
if param1 == "g" then
os.loadAPI ("rpg")
else
end
if param1 == "s" then
os.loadAPI ("shutd")
else
end
if param1 == "h" then
os.loadAPI ("help")
else
end
the clock it shown where i labeled it. the gui looks funny but thats because of the weird spacing.
can anyone fix this up for me so that it works?
Edited by