Jump to content




Monitor redirect controll - run many screens at ounce


14 replies to this topic

#1 BigSHinyToys

  • Members
  • 1,001 posts

Posted 07 April 2013 - 11:37 PM

Posted Image
Posted Image
code for the Screen saver above
Code: http://pastebin.com/LD5uduUj


This program is designed to allow a user to select what monitors you would like to output to.

Usage

NOTE: this program requires a Computer Craft ver 1.51 or above and Peripheral cables NOT wifi modems.

using a mouse click on the true / false in the active column to toggle output to that monitor.
Scroll can be used for larger list of monitors.
press enter to apply changes and return to shell input

Please report any problems or ideas for improvement

Download
0.3
pastebin get KxqCTb9D display
* added error message for old CC vers


0.2
pastebin get niMU2Kh5 display
*added scale control click on scale to change it up right click to lower "best" will fit the full screen if possible


0.1alpha
http://pastebin.com/cUeTSD2m

#2 superaxander

  • Members
  • 609 posts
  • LocationHolland

Posted 09 April 2013 - 01:40 AM

Wow how did you do that O.o Nice job!

#3 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 09 April 2013 - 01:43 AM

Very nice.

I'm assuming this is an extension of your old program that mimicked to the monitor screen?

#4 BigSHinyToys

  • Members
  • 1,001 posts

Posted 09 April 2013 - 03:34 AM

View Posttheoriginalbit, on 09 April 2013 - 01:43 AM, said:

Very nice.

I'm assuming this is an extension of your old program that mimicked to the monitor screen?
yep it is a recode that adds peripheral cable capability.

View Postsuperaxander, on 09 April 2013 - 01:40 AM, said:

Wow how did you do that O.o Nice job!
Thanks . basically what it does is send every term command to every monitor and then the terminal that is why it ust clear the screen and set the cursorPos to 1,1 so all screens start the same from there every command is sent to the peripheral and the real terminal as well the real terminal commands are used for functions that return a variable and as all screens are being sent the same information the terminal has the same get Pos as the other monitors meaning I don't need to get that information from all the others.

another way to look at is is if I have two monitors and both have a black screen and are at point 1,1 when i send term.write("hello") both will have the same information on them then if i call getCursorPos on screen one it will be the same as screen two so i can ignore screen two and just use screen one.

Doing it this way is faster than buffering the screen in a table then drawing that table on all other screens resulting in less flicker.

#5 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 09 April 2013 - 03:36 AM

View PostBigSHinyToys, on 09 April 2013 - 03:34 AM, said:

yep it is a recode that adds peripheral cable capability.
Thought so... still nice :)

have you considered having it auto change the text scale to try and fill each monitor as much as possible?

#6 BigSHinyToys

  • Members
  • 1,001 posts

Posted 09 April 2013 - 04:10 AM

View Posttheoriginalbit, on 09 April 2013 - 03:36 AM, said:

Thought so... still nice :)

have you considered having it auto change the text scale to try and fill each monitor as much as possible?
Currently it cheeks for largest scale that will show the full screen (lines 19 to 32). I don't know how it would cope trying to write to non existent screen area. That is something I will look into possible allow user to manually set the scale setting in future vers. This ver also adds a nice mouse orientated UI that wasn't present the old command line ver. try resizing the boxes it works ;) .
Here


also New pic in OP see above ^

#7 BigSHinyToys

  • Members
  • 1,001 posts

Posted 09 May 2013 - 11:38 PM

New Version 0.2

change log
*added scale control click on scale to change it up right click to lower "best" will fit the full screen if possible
* performance increase
- removed peripheral calls for non screen altering functions {"getCursorPos","getSize","isColour","isColor",}

as always report any bugs or request new features. thx BST

#8 superaxander

  • Members
  • 609 posts
  • LocationHolland

Posted 10 May 2013 - 12:46 AM

Nice!

#9 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 10 May 2013 - 09:21 AM

View Postsuperaxander, on 10 May 2013 - 12:46 AM, said:

Nice!


#10 tvc

  • Members
  • 35 posts

Posted 01 June 2013 - 11:01 AM

I need a modem on this pc to access another file but i get

startup:154: No such Method isWireless?

any help?

#11 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 01 June 2013 - 11:07 AM

View Posttvc, on 01 June 2013 - 11:01 AM, said:

I need a modem on this pc to access another file but i get
startup:154: No such Method isWireless?
any help?
This program requires you to have ComputerCraft 1.51 and above as it needs peripheral cables to function, the only way you would be getting this error message is if you're not using the correct version of ComputerCraft.

#12 BigSHinyToys

  • Members
  • 1,001 posts

Posted 02 June 2013 - 12:36 AM

View Posttheoriginalbit, on 01 June 2013 - 11:07 AM, said:

View Posttvc, on 01 June 2013 - 11:01 AM, said:

I need a modem on this pc to access another file but i get
startup:154: No such Method isWireless?
any help?
This program requires you to have ComputerCraft 1.51 and above as it needs peripheral cables to function, the only way you would be getting this error message is if you're not using the correct version of ComputerCraft.
added note in OP about program CC ver requirements.

#13 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 02 June 2013 - 12:41 AM

View PostBigSHinyToys, on 02 June 2013 - 12:36 AM, said:

added note in OP about program CC ver requirements.
Could probably add in an error message too.

#14 BigSHinyToys

  • Members
  • 1,001 posts

Posted 02 June 2013 - 01:13 AM

View Posttheoriginalbit, on 02 June 2013 - 12:41 AM, said:

Could probably add in an error message too.
New ver 0.3 with error message

#15 Doom6197

  • Members
  • 3 posts
  • LocationSouth Africa

Posted 02 June 2013 - 03:06 AM

This is awesome , also thanks for including the code to your screensaver.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users