Jump to content




Window on a monitor


  • You cannot reply to this topic
2 replies to this topic

#1 Dustmuz

  • Members
  • 174 posts
  • LocationDenmark

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 by Dustmuz, 04 January 2015 - 11:22 AM.


#2 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

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")


#3 Dustmuz

  • Members
  • 174 posts
  • LocationDenmark

Posted 04 January 2015 - 12:21 PM

arhhh :D thanks Dragon..

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





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users