Jump to content

Activating Webdisplay with Redstone

peripheral media

1 reply to this topic

#1 RyanFaulk

  • New Members
  • 1 posts

Posted 29 July 2015 - 04:10 PM

All I want to do is something very simple, and that is to make a webdisplay screen navigate to a page when redstone to the left of the computer,


I can navigate pages by typing in lua and then the proper commands from there after having first set up the peripheral

I've never coded before, but I surmise that this is close to what is needed to make this work, but I have no idea where to put it:

if redstone.getInput("left",true) then

I know where to make programs run in the "normal area", but not the interactive lua prompt, which appears to be the only way to interact with the webdisplays computer interface.

Intuitively this seems like it would be so simple to just have a redstone input make the webdisplay go to a specific website.

#2 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 29 July 2015 - 05:21 PM

You'd do this:
while true do
  if rs.getInput( "left" ) then 
    --#set stuff
    --#set other stuff
  os.pullEvent( "redstone" ) --#waits for redstone input to change

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users