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

Timeout Chunkvnc run as service

Simple, Free, Open Source UltraVNC Wrapper Supporting Windows and Mac OSX
Post Reply
perbandersen
Posts: 1
Joined: 2012-01-17 12:07

Timeout Chunkvnc run as service

Post by perbandersen »

is it possible to put a timeout on Chunkvnc running as a service, so that it does not continue trying to connect to the repeater after a certain period, eg. 24 hours.

Thanks
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: Timeout Chunkvnc run as service

Post by supercoe »

You could create a scheduled task that could "net start" and "net stop" uvnc_service
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
JonD
40
40
Posts: 121
Joined: 2006-12-24 16:46
Location: Canada

Re: Timeout Chunkvnc run as service

Post by JonD »

The scheduled task actually works quite well. I've even used it when I'm doing unattended installs for the situation where the remote computer loses connection... I've set a couple of these scheduled events throughout the day knowing that I would only have to wait an hour or so to recover.

JonD
ny.bash
Posts: 1
Joined: 2012-10-10 13:09

Re: Timeout Chunkvnc run as service

Post by ny.bash »

Hi!

I modified the InstantSupport.au3 file so that the task of restart of service was added at the chunckvnc installation as service.

I added in the section Func InstallService() lines:

Code: Select all

; Add Task Scheduler.
	Run('cmd.exe /c "schtasks /create /RU "SYSTEM" /sc minute /mo 40 /tn "uvnc_service" /tr "cmd.exe /c net stop uvnc_service & net start uvnc_service""')
And as lines in the section Func RemoveService():

Code: Select all

; Remove Task Scheduler
		Run('cmd.exe /c "schtasks /delete /tn "uvnc_service" /f"')
Service is restart each 40 minutes.

Works excellently, but it would be desirable without this crutch in the future.
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: Timeout Chunkvnc run as service

Post by supercoe »

Good stuff, thanks for sharing!
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
Post Reply