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!













