Celebrating the 22th anniversary of the UltraVNC: https://forum.uvnc.com/viewtopic.php?t=38031
Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Is it possible to Scale the viewer when using Java interface

Post Reply
PaulAtBlur
Posts: 1
Joined: 2004-08-12 10:24
Location: Venice, CA
Contact:

Is it possible to Scale the viewer when using Java interface

Post by PaulAtBlur »

We currently use 10 machines to do cloth simulations.

When we are using all the machines we like to have all of them open at once so we can see the progress of each machine.

What we currently do, is have each machine set up with a hotkey that calls up the UltraVNC viewer and set the scaling to 25%

This way we can have them "Tiled" on a second monitor.

What we would like to do now is create an HTML document that has each machine in a seperate frame. The only problem is, we can not enable scaling when using the HTML interface.

Is this possible without touching the code for the Java Viewer? If not, does it seem possible that this can be done at all?

Any info would greatly appreciated.

Thanks,
Paul
UltraSam
Admin & Developer
Admin & Developer
Posts: 462
Joined: 2004-04-26 20:55
Contact:

Post by UltraSam »

Well...

The best thing to do would be to add the scaling code to the JavaViewer. Will be done one day or another...

There's also another possibility that I've not yet tested but that could make the trick to get "scaled" javaviewers:
Create an HTML page with several tiled iFrames (one for each viewer). Make each frame points on the JavaViewer HTML container page (available in the JavaViewer Source code zip).
Then for each iFrame, you can use the object.style.zoom attribute/property and change it with some Javascript code to set the zoom factor you want. Should work :)
I will try this if I have time.
UltraSam
lotpeter
Posts: 5
Joined: 2004-11-08 02:29

Post by lotpeter »

I have the same zoom iframe request, plus that if password can be send like the "http:/192.168.1.2 :5800 ?password=clearpassword"

if the java viewer can do more ,be snapshot(printscreen) by some toolbar, that'll be more perfect. :P
UltraSam
Admin & Developer
Admin & Developer
Posts: 462
Joined: 2004-04-26 20:55
Contact:

Post by UltraSam »

So, no one has tried the "object.style.zoom" trick yet ?
Going to evaluate it myself...

I'm currently working on the javaViewer but not on adding the scaling feature so far...
UltraSam
lotpeter
Posts: 5
Joined: 2004-11-08 02:29

Post by lotpeter »

zoom in 1/2:
obj.style.zoom=0.5;

zoom out :
obj.style.zoom=2;

it do work.

but it is a kind of cut a part to display, not like the cmd mode scale option.

btw, can i ask what's the record toolbar button of javaviewer use for? how to use the file it save?

does it like a move/avi record ?

if it is a kind of move avi file, it will be very useful !
Post Reply