After more 2 000 000 (two million) views on forum for 1.5.0.x development versions... and 1.6.1.0, 1.6.3.0-dev versions
A new stable version, UltraVNC 1.6.4.0 and UltraVNC SC 1.6.4.0 have been released: https://forum.uvnc.com/viewtopic.php?t=38095
Feedback is always welcome

2025-12-14: 1.7.1.X-dev release builds need tests and feedback: https://forum.uvnc.com/viewtopic.php?t=38134

2025-12-02: We need help: English Wikipedia UltraVNC page has been requested to deletion: https://forum.uvnc.com/viewtopic.php?t=38127
Any help is welcome to improve the UltraVNC page and/or to comment on the Wikipedia Talk page

2025-05-06: Forum password change request: https://forum.uvnc.com/viewtopic.php?t=38078

2023-09-21: Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Development: UltraVNC development is always here... Any help is welcome
Feedback is welcome

View only - 256 colors

Should you have problems with the JavaViewer? Here is the place to look for help or report issues
Post Reply
giacomo9
Posts: 1
Joined: 2008-06-09 19:49

View only - 256 colors

Post by giacomo9 »

I want to use the JavaViewer as a view-only application and to default to a 256 color display. I know that the Server application can be setup to reject remote mouse and keyboard actions and to disallow file transfer, but I'd also like to disable the Viewer buttons or remove them altogether and as I said, have it default to a 256 color display.

I am both a Java and .NET developer, so I can see that I can make changes to the applet code, recreate the jar and then recompile the Server executable, but I'm hoping I'm missing an easier way to do this.

Any ideas would be appreciated.
nickdabs
Posts: 7
Joined: 2008-09-29 21:27

Re: View only - 256 colors

Post by nickdabs »

Hi,

I wanted it to default to view only with full colour. The only way to do this I could find was to mod and recompile the JavaViewer and UltraVNC Server.

Code: Select all

	// Set up defaults

    choices[encodingIndex].select("Tight");
    choices[compressLevelIndex].select("Default");
    choices[jpegQualityIndex].select("6");
    choices[cursorUpdatesIndex].select("Disable");
    choices[useCopyRectIndex].select("Yes");
    choices[eightBitColorsIndex].select("Full");
    choices[mouseButtonIndex].select("Normal");
    choices[viewOnlyIndex].select("Yes");
    choices[shareDesktopIndex].select("Yes");
Changing the values between the quotes accordingly.

Cheers,
Nick.
Post Reply