Jump to content




I need help with advanced monitor


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

#1 ZKlack

  • Members
  • 9 posts
  • LocationRiyadh

Posted 23 May 2015 - 07:06 AM

first, sorry if you found my English bad because I'm Saudi.

if i type help monitors it shows me some of the codes but not all them and I didn't understand what are the codes doing to the monitor

I know some of the codes here are they
mon=peripheral.wrap("right")--this set mon is short for sepipheral.wrap("right") so every time i want to code the right monitor i type mon.<code>
mon.setCursorPos(6,4)--this tells where do i want to write
mon.write("Go ahead and learn ZKlack!!")--this write Go ahead and learn ZKlack!! in the monitor
I want to know all of the codes pleas but specially the coloring codes and the touch codes
* please tell me what is (the output)-(what the code will return)-(true, false, value of ****, any thing like that) of the codes you are giving me
----thank you a lot----

#2 flaghacker

  • Members
  • 655 posts

Posted 23 May 2015 - 07:58 AM

The wiki has a list of them here . If you wrap a monitor as a peripheral, it also has the setTextScale function which takes one number as a parameter, the scale.

To detect when someone touches the monitor, you'll have to use os.pullEvent ().

#3 ZKlack

  • Members
  • 9 posts
  • LocationRiyadh

Posted 23 May 2015 - 12:05 PM

View Postflaghacker, on 23 May 2015 - 07:58 AM, said:

The wiki has a list of them here . If you wrap a monitor as a peripheral, it also has the setTextScale function which takes one number as a parameter, the scale.

To detect when someone touches the monitor, you'll have to use os.pullEvent ().
thank you a lot flaghacker
that was really helpful





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users