Jump to content




Previewon (Display Document On A Screen, With Scrolling!)


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

#1 BigTwisty

  • Members
  • 106 posts

Posted 08 September 2013 - 09:30 PM

previewOn
by BigTwisty

Have you ever found some files just too big to comfortably view on a standard computer screen? This simple but handy program allows you to use large monitors to display those big files without having to use the computer to navigate. Simply click the top half of the monitor to scroll up a screen, or the bottom half to scroll down. I found this to work best on a 4x4 monitor: anything larger and the scrolling kind of goofs up. But hey, 4x4 is still WAY better than that tiny computer screen!

download: http://pastebin.com/Ue3MeGhX
pastebin get Ue3MeGhX previewOn

previewOn requires an advanced monitor because it relies on monitor_touch to scroll the text. Because the "preview" program, which this uses for display, does not support "monitor_resize" I had to end the program on such an event.

This was my first attempt at limited multi-threading using coroutine, and as such it is fairly simple. It basically loads the "preview" program in a coroutine, and then translates events to make "preview" do what we want it to.

Code:
Spoiler

Edit: Any way I can change the title of the post? The program is called "previewOn" in accordance to standard Lua naming convention, not "Previewon" which just looks goofy!

#2 Dave-ee Jones

  • Members
  • 456 posts
  • LocationVan Diemen's Land

Posted 09 September 2013 - 03:32 AM

Screenies?

#3 BigTwisty

  • Members
  • 106 posts

Posted 09 September 2013 - 07:16 AM

View PostAutoLocK, on 09 September 2013 - 03:32 AM, said:

Screenies?
Kinda pointless. It's just running the "preview" program on another monitor, inserting its own controls.

"Screenie":
Spoiler


#4 Mitchfizz05

  • Members
  • 125 posts
  • LocationAdelaide, Australia

Posted 12 September 2013 - 02:25 AM

You should make it possible to specify a text scale in the args.
Good job though!

#5 Dave-ee Jones

  • Members
  • 456 posts
  • LocationVan Diemen's Land

Posted 12 September 2013 - 02:57 AM

View PostBigTwisty, on 09 September 2013 - 07:16 AM, said:

View PostAutoLocK, on 09 September 2013 - 03:32 AM, said:

Screenies?
Kinda pointless. It's just running the "preview" program on another monitor, inserting its own controls.

"Screenie":
Spoiler

...You know, you could just type into the terminal: monitor <side> edit/preview <program>

It does the same thing...?
Or can you edit it with the code still visible in the computer, as well as the monitor?

#6 BigTwisty

  • Members
  • 106 posts

Posted 12 September 2013 - 06:13 AM

The problem with viewing text on a monitor is that to move around in it you have to go back into the computer and type or scroll. This app takes monitor touches and scrolls a whole screen at a time. It is much easier to just right click the monitor you are viewing on on the top or bottom.

#7 Dave-ee Jones

  • Members
  • 456 posts
  • LocationVan Diemen's Land

Posted 13 September 2013 - 07:18 PM

View PostBigTwisty, on 12 September 2013 - 06:13 AM, said:

The problem with viewing text on a monitor is that to move around in it you have to go back into the computer and type or scroll. This app takes monitor touches and scrolls a whole screen at a time. It is much easier to just right click the monitor you are viewing on on the top or bottom.

Ohhhhhh! That makes much more sense!

Sorry :/

But it sounds really good!

#8 Bubba

    Use Code Tags!

  • Moderators
  • 1,142 posts
  • LocationRHIT

Posted 13 September 2013 - 07:24 PM

View PostBigTwisty, on 08 September 2013 - 09:30 PM, said:

Edit: Any way I can change the title of the post? The program is called "previewOn" in accordance to standard Lua naming convention, not "Previewon" which just looks goofy!

Unfortunately, the forum software messes with the capitalization. I don't believe that there is any way to change it. See this topic





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users