Want to share some InstantSupport modifications

Simple, Free, Open Source UltraVNC Wrapper Supporting Windows and Mac OSX.

Want to share some InstantSupport modifications

Postby spiorf » 2013-03-20 13:44

Hi, I've made some changes to instantsupport.a3u that i woluld like to share.

    Code is displayed only after connection is checked and server started
    In the main loop checks for running vnc server process and if it is not running "Error" is displayed,the connection is retried and then the server is relaunched. If it fails again exits.

    Every 5 minutes tries to open a socket to the repeater and if it fails "Error" is displayed,the connection is retried and then the server is relaunched. If it fails again exits
    If somehow the InstantSupportVNC.exe was deleted, istantsupport.exe became unclosable and had to be killed. Fixed by using ShellExecute instead of _Run in _DeleteSelf. Is this ok? i've never used AutoIt before and i'm learning as i try to change stuff.

This post is mainly for supercoe: i cant' PM anyone because i've not enough posts.

I can't link back to the site because i'm using it in corporate for the customers help desk. But i would like to adapt some of these features into your version if you are interested.
I'm testing it right now with 3 users and if all goes well about 50 people will be using it many times a day.
spiorf
 
Posts: 2
Joined: 2013-03-20 09:34

Re: Want to share some InstantSupport modifications

Postby supercoe » 2013-03-22 13:26

Good stuff, I always appreciate when people share their modifications!

Feel free to post your code here so everyone can look at it. :)
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
User avatar
supercoe
Super-Mod
Super-Mod
 
Posts: 1735
Joined: 2009-07-20 21:27
Location: Walker, MN

Re: Want to share some InstantSupport modifications

Postby spiorf » 2013-04-06 15:18

Hi,
I discovered autoit looking at your code, and i am so happy about it that this is the least i can do.
I finally had time to translate everything back in english.
I've made some changes to the perl repeater script to receive some info from clients and servers and print it in the log file.
Basically the program connects and sends the string "XX:SOMELONGSTRINGOFINFOS" and this string gets printed in the logs without generating an error.
It makes easier to track who connects to who.

Other changes are:

    The desktop link can save the current code. is encoded in the command line.
    Checks if the winvnc.exe process has an established connection with the repeater
    Changed the js script with a winapi call because the script was changing the modified date of all files of the folder, and this looks very suspicious.
    repeater addess is hardcoded, but the ini alternative code is there, commented
    Can fallback on some other tool
    Main loop with timers to keep cpu usage low
    I used scite to compile

All the exe files in the archive are updated to the latest version.

InstantSupport_source.zip (4.0 MB)
spiorf
 
Posts: 2
Joined: 2013-03-20 09:34

Re: Want to share some InstantSupport modifications

Postby manf0001 » 2013-04-07 11:07

Here is some new code to add for being able to reboot into safe mode with networking. The below codes are used when you install it as a service. and when you uninstall the service it will remove that reg code. In order to boot into safe mode with networking, do it via the msconfig util

Edit the INstantSupport.au3 file in the SRC folder

Locate ; Install VNC Service (it's near the bottom)


And copy the following under the first Shellexecute line

shellExecute("reg.exe","add HKLM\System\CurrentControlSet\Control\SafeBoot\Network\uvnc_service /VE /T REG_SZ /F /D Service","%systemroot%\system32")

***The First one allows booting into safemode with networking You have to still enable it via msconfig under the boot tab.

then copy the below under the ; Remove VNC Service (this will remove the reg keys after you uninstall the service)

shellExecute("reg.exe","delete HKLM\System\CurrentControlSet\Control\SafeBoot\Network\uvnc_service /F","%systemroot%\system32")


Hope this helps for others
manf0001
8
8
 
Posts: 12
Joined: 2013-03-11 10:14

Re: Want to share some InstantSupport modifications

Postby heat_z0ne » 2013-11-08 05:58

I tried , server doesn't connect to repeator, Why i don't know ...
heat_z0ne
 
Posts: 7
Joined: 2013-05-17 00:03

Re: Want to share some InstantSupport modifications

Postby cabria » 2013-11-12 08:30

I got the same issue, that it cant connect to the repeator.
cabria
8
8
 
Posts: 8
Joined: 2013-03-22 12:50
Location: Denmark


Return to ChunkVNC

Who is online

Users browsing this forum: No registered users and 3 guests