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
- 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

Custom application similar to single click - Help Please

Single Click discussions / bugs
Post Reply
JMass
Posts: 2
Joined: 2006-05-10 15:25

Custom application similar to single click - Help Please

Post by JMass »

Hello!

I am making a custom application that I would like to do something very similar to single click. The reasons that I do not want to use single click are 1> I have several other applications that I want to bundle together, and 2> I want to tunnel all of these apps through SSH.

What I am wondering is how I can launch an executable to do the same thing as the single click. I tried the binary vncviewer.exe and winvnc.exe, but they did not apear to have the options needed.

I then took the winvnc.exe from my single click and the arguments from the helpdesk.txt file and ran that from the command line. That seemed to work OK. Is there a disadvantage to this? What about cleanup of the connection? Any other concerns?

Thanks in advance for the advice.

Jason
CBailey
40
40
Posts: 71
Joined: 2005-02-28 23:41

Post by CBailey »

I'm trying to do something similiar. The problem, SC is made to be very unfriendly to this sort of thing, which really is a shame. From what I've found, it's relatively easy to launch, but good luck knowing what it does after that. Is it connected? Did it time out? Did it connect, and then disconnect?

Maybe what we need is a different flavor of SC. There are many different Linux'es, all with an audience. Perhaps it might be a good idea to split off SC, and tailor SCG2 (SC Generation 2) towards those of us who want to use it in our own programs.
JMass
Posts: 2
Joined: 2006-05-10 15:25

Post by JMass »

Just an FYI - I was able to get done what I needed by using the compiled winvnc.exe from SC and passing the parameters in helpdesk.txt to it.

My application is now working. I am really just wondering about the details of cleanup, etc.

If none are available, I can live. My main goal is a single click exe that creates a SSH tunnel and connects to the redirector while giving the user a nice graphical status bar for the tunnel setup and connection success or failure feedback. I have that working, so I am OK with what I have done so far.

However, I agree that a lower level customization of SC would be great, or even better yet.... Put the needed options into the binary distribution.

JMass
CBailey
40
40
Posts: 71
Joined: 2005-02-28 23:41

Post by CBailey »

I prefer running with options on the command line as well. I haven't experimented a lot, but seems to work fine, and doesn't leave a helpdesk.txt to clean up. One clue I'm following is looking at the system wallpaper. Using a repeater, the only clue I can find that it's actually connected is that the wallpaper disappears. My program detects when it's removed, and it looks like I can tell when it's really connected. Now, all I need is a nice way of telling Winvnc to exit, without having to forcibly kill the thread...
Post Reply