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

VNCviewer script capability

Any features you would like to see in UltraVNC? Propose it here
Post Reply
jp31415926
Posts: 1
Joined: 2010-11-03 16:00

VNCviewer script capability

Post by jp31415926 »

I have a need to be able to automate GUI actions via a VNC connection. It occurs to me (and probably others too) that adding a simple scripting capability to VNCviewer to automatic mouse movement and clicking, as well as key presses, would satisfy my needs.

I am willing to attempt a first cut at such a feature. My scripting language choice would probably be Lua (www.lua.org) since it is open source, light-weight and I am already familiar with it. I imagine a new toolbar button similar to the "Send custom key" button could be added with a dialog for a path to the script to run. Also, a command line option to run a script after connection would be nice.

With this said, does anyone (especially the developers of UltraVNC) have any input or guidance to help me get started quickly? Of course, if someone has already started in this direction, I'd love to help.

Thanks,
John
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6879
Joined: 2004-04-23 10:21
Contact:

Re: VNCviewer script capability

Post by Rudi De Vos »

This will be extreme difficult.

A normal key and mouse logger/replayer use the caption bars and button names. But the vnc viewer show an image, you only can tell: go position x,y and do that.... independed if the underlaying windows exist or not.
A small image shift, or position that a child windows open and all fail....
Post Reply