Posted 08 June 2012 - 12:51 AM
This Is A Code To Make Monitors Wireless Can You correct It For Me?
Wireless Monitor Changer
*******************************
Server/Main PC:
=============================================
print("Wireless Monitor Editor By Musicgack")
rednet.open("back")
while true do
sleep(0.5)
monitortext = read()
rednet.broadcast(monitortext)
end
===============================================
PC With The Monitor ("Client")
===============================================
mon.write("This Software Is Made By Musicgack")
print("This Software Is Made By Musicgack")
sleep(5)
mon.clear()
term.clear()
rednet.open("back")
while true do
sleep(0.5)
id, msg = rednet.recieve()
monitortext = rednet.recieve()
mon.write(monitortext)
if msg = "clear" and id = "10" then
mon.clear()
end
if msg = "shutdown" and id = "10" then
mon.clear()
os.shutdown()
end
if msg = "font5" then
mon.setfontsize(5)
end
if msg = "font4" then
mon.setfontsize(4)
end
if msg = "font3" then
mon.setfontsize(3)
end
if msg = "font2" then
mon.setfontsize(2)
end
if msg = "font1" then
mon.setfontsize(1)
end
if msg = "nextline$" then
mon.nextline()
end
if msg = "restart" then
mon.setCursorPos(1,1)
end
if msg = "commands" then
mon.clear()
mon.setCursorPos(1,1)
mon.write("Commands")
mon.write("===========")
mon.write("font1 > font5 -Changes Font Size")
mon.write("clear -Clears The Monitor")
mon.write("nextline$ -Goes To The Next Line")
mon.write("shutdown -Shutdown The Computer")
mon.write("restart -Goes To 1st Line")
mon.write("Anything Else Will Go On The Screen")
mon.write("Clear The Screen Again =P")
end
end
=================================================
Wireless Monitor Changer
*******************************
Server/Main PC:
=============================================
print("Wireless Monitor Editor By Musicgack")
rednet.open("back")
while true do
sleep(0.5)
monitortext = read()
rednet.broadcast(monitortext)
end
===============================================
PC With The Monitor ("Client")
===============================================
mon.write("This Software Is Made By Musicgack")
print("This Software Is Made By Musicgack")
sleep(5)
mon.clear()
term.clear()
rednet.open("back")
while true do
sleep(0.5)
id, msg = rednet.recieve()
monitortext = rednet.recieve()
mon.write(monitortext)
if msg = "clear" and id = "10" then
mon.clear()
end
if msg = "shutdown" and id = "10" then
mon.clear()
os.shutdown()
end
if msg = "font5" then
mon.setfontsize(5)
end
if msg = "font4" then
mon.setfontsize(4)
end
if msg = "font3" then
mon.setfontsize(3)
end
if msg = "font2" then
mon.setfontsize(2)
end
if msg = "font1" then
mon.setfontsize(1)
end
if msg = "nextline$" then
mon.nextline()
end
if msg = "restart" then
mon.setCursorPos(1,1)
end
if msg = "commands" then
mon.clear()
mon.setCursorPos(1,1)
mon.write("Commands")
mon.write("===========")
mon.write("font1 > font5 -Changes Font Size")
mon.write("clear -Clears The Monitor")
mon.write("nextline$ -Goes To The Next Line")
mon.write("shutdown -Shutdown The Computer")
mon.write("restart -Goes To 1st Line")
mon.write("Anything Else Will Go On The Screen")
mon.write("Clear The Screen Again =P")
end
end
=================================================