This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Dustmuz's profile picture

Window on a monitor

Started by Dustmuz, 04 January 2015 - 10:19 AM
Dustmuz #1
Posted 04 January 2015 - 11:19 AM
Hello again and Happy new year to everyone :)/>


i'm currently working on a "main" system for my base, and was trying to use windows on my monitor (just for the sake of learning something new)

but i ran into a "small" problem :D/>

how do i get the window created on the monitor??

the code im using is 3 lines :D/>


local mon = peripheral.wrap("right")
window.create(mon, 1,3,59,10,true)
window.write("hello world")

with that code in getting an error on line 3

attempt to call nill
Edited on 04 January 2015 - 10:22 AM
Dragon53535 #2
Posted 04 January 2015 - 12:13 PM
Window.create returns a value.


local win = window.create(mon,1,3,59,10,true)
win.write("hello world")
Dustmuz #3
Posted 04 January 2015 - 12:21 PM
arhhh :D/> thanks Dragon..

didnt think you would be up at this time :D/> hehe