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

Wireless monitor

Started by Xelostar, 06 March 2019 - 08:08 AM
Xelostar #1
Posted 06 March 2019 - 09:08 AM
"Just Gekto" made this program, but was unable to create an account for this forum and has asked me to make this post. For more info see: https://forums.compu....msg359#msg359.
Enjoy:

CC wireless monitor beta 1.1
Change log:
- Added auto update

Description:
This program allow you to cast your computer screen over rednet.

Know issues:
- term.setCursorBlink() dont work
- shell.compleate() causes crash
- big graphical programs may freeze or display half of image

Sloves of isues:
- disabe shell.complete() by entering this to the shell "set bios.useautocompleate false"

Api docs:
wr_monitor.connect(modem,id,mode)
return table with all the functions of remote term

Plans for future updates:
- Working term.setCursorBlink()
- Working shell.autocomplete()
- Faster way to send commands (no lags)
- Ability to interact with programs using any of screens

Github repository: https://github.com/J...ireless-monitor

Pastebin installer:https://pastebin.com/AYupa3Xu

Install command:
pastebin run AYupa3XuShowcase:

Video:
http://youtu.be/pRYvMAjf0wc
Edited on 06 March 2019 - 08:08 AM
LDDestroier #2
Posted 06 March 2019 - 02:21 PM
What would be really cool is if all the peripherals API functions could be modified to use this API to treat network monitors exactly the same as connected ones.

And might I ask, does this support monitor_touch events?
magiczocker #3
Posted 07 March 2019 - 08:20 AM
You can improve the performance by calling the modems directly with
peripheral.call(modemSide,"transmit",senderChannel,replyChannel,message)
and receive the events with

while true do
  local e={coroutine.yield()}
  if e[1]=="modem_message" then
   print("Side: "..e[2])
   print("Cannel: "..e[3])
   print("Reply Cannel: "..e[4])
   print("Message: "..e[5])
  end
end