Bug and Bugfix for "unblock.js"

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

Bug and Bugfix for "unblock.js"

Postby Netzvamp » 2012-01-12 20:30

Hi,

i had a small issue with the "unblock.js"-file that is running if you start the instantsupport.exe.
In your Code you try to start that script, but you don't tell windows which programm should execute the script. So windows use the program that is associated with the filetype. Thats in 90% of all cases the right program (wscript.exe), but i associated *.js files with an texteditor :roll:
Every time i start the instantsupport.exe, this texteditor starts and shows me the unblock.js file :D

Fix:
Change Line 118 in the InstantSupport.au3
Code: Select all
ShellExecuteWait($WorkingPath & "\unblock.js", "", @ScriptDir, "")

with that line
Code: Select all
ShellExecuteWait("wscript.exe", $WorkingPath & "\unblock.js", @ScriptDir, "")

and it should execute the right executable with the right script.

Long text for such an easy task ... sorry :mrgreen:
Netzvamp
8
8
 
Posts: 9
Joined: 2011-04-06 15:20

Re: Bug and Bugfix for "unblock.js"

Postby supercoe » 2012-01-12 20:41

Thanks for a solution, I know this was a problem for a few people. :)
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
User avatar
supercoe
Super-Mod
Super-Mod
 
Posts: 1720
Joined: 2009-07-20 21:27
Location: Walker, MN

Re: Bug and Bugfix for "unblock.js"

Postby smgerber » 2012-02-05 17:53

Thanks so much for this fix, Netzvamp. It was driving me bonkers, especially since Dreamweaver kept popping up and that isn't instantaneous.
smgerber
8
8
 
Posts: 28
Joined: 2012-01-29 19:39

Re: Bug and Bugfix for "unblock.js"

Postby supercoe » 2012-02-06 22:43

I haven't had time to test this but it looks like at least this user is still having a problem: viewtopic.php?f=27&t=29279

Looks like we need to have the path that gets sent to wscript.exe wrapped in quotes.

This should do the trick:
Code: Select all
ShellExecuteWait("wscript.exe", '"' & $WorkingPath & '\unblock.js"', @ScriptDir, "")
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
User avatar
supercoe
Super-Mod
Super-Mod
 
Posts: 1720
Joined: 2009-07-20 21:27
Location: Walker, MN

Re: Bug and Bugfix for "unblock.js"

Postby smgerber » 2012-02-06 23:49

I am the "this user" mentioned above by "supercoe".

I just tested this and it seems to work flawlessly now under WIN XP.

Thanks very much for a quick and what looks to be a total solution.

Regards ... Sam
smgerber
8
8
 
Posts: 28
Joined: 2012-01-29 19:39

Re: Bug and Bugfix for "unblock.js"

Postby supercoe » 2012-02-06 23:54

No problem man, glad it fixed the issue! :)
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
User avatar
supercoe
Super-Mod
Super-Mod
 
Posts: 1720
Joined: 2009-07-20 21:27
Location: Walker, MN


Return to ChunkVNC

Who is online

Users browsing this forum: No registered users and 0 guests