My setup:
SC client ~ internet ~ router ~ repeater ~ vncviewer workstation
Using SC with ID prompt, repeater on my lan & viewer on multiple workstations.
Current setup:
tech gives client their ID ####
client runs SC & enters ID
tech opens viewer
tech enters proxy "Repeater_IP:port"
tech enters "ID:####"
session established
Works phenominal. New version of viewer asks permission & connection is flawless.
BUT, I'm trying to eliminate some steps on the tech side.
I know it's pretty easy but the viewer dialog box can be screwed up if the wrong numbers are entered.
I know a command line can be run, but a different ID still needs to be entered every connect.
So, if
vncviewer.exe -proxy 192.168.0.10::5901
is run, then the viewer dialog pops up and the id has to be typed "ID:xxxx".
Has anybody had luck with a script or batch that will present a small box asking for an ID and then complete the command:
vncviewer.exe -proxy 192.168.0.10::5901 ID:%id%
and run it?
Couldn't find anything in the forums. I will be creating one eventually and will post my results. Any help is greatly appreciated!
ryan
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
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
Script to ask for "ID" & run vncviewer with that ID:"xxxx"?
-
- 8
- Posts: 16
- Joined: 2006-02-13 02:45
- Location: RI USA
-
- 8
- Posts: 16
- Joined: 2006-02-13 02:45
- Location: RI USA
I am by no means a programmer, and have much to learn about such things BUT I am very persistant and am always willing to learn new stuff.
This is what i have concocted so far, but I'm doing some things wrong... can anyone help?
'vnc viewer proxy automate
'for sc support connection
'2006 radams
Dim sessid
Dim objShell
Dim repID
Set objShell = CreateObject("WScript.Shell")
sessid = Inputbox ("Please enter a session ID","Initiate Remote Support Session")
msgbox "Please provide customer with this ID " & vbCr_
& "so they may connect with this session. " & vbCr _
& sessid
repID = sessid
objShell.Run "C:\vncviewer.exe -proxy 192.168.0.10::5901 ID:repID"
This is basically a "single-click" for the support end. It only asks for a session ID.
Thanks in advance
This is what i have concocted so far, but I'm doing some things wrong... can anyone help?
'vnc viewer proxy automate
'for sc support connection
'2006 radams
Dim sessid
Dim objShell
Dim repID
Set objShell = CreateObject("WScript.Shell")
sessid = Inputbox ("Please enter a session ID","Initiate Remote Support Session")
msgbox "Please provide customer with this ID " & vbCr_
& "so they may connect with this session. " & vbCr _
& sessid
repID = sessid
objShell.Run "C:\vncviewer.exe -proxy 192.168.0.10::5901 ID:repID"
This is basically a "single-click" for the support end. It only asks for a session ID.
Thanks in advance
-
- 8
- Posts: 16
- Joined: 2006-02-13 02:45
- Location: RI USA
Ok I've found such a script in the feature request section!
[topic=4174][/topic]
It does what I'm looking for and is much cleaner.
Thanks to William Knak and mortenchristensen for this script.
This script is intended to be run on the machine hosting repeater (i assume from the code) by running a shortcut on a workstation.
I've modified it slightly to be:
'###########################################################################
' ## UltraVNC Viewer SingleClick Launcher II ##
' ## Autor: William D. Knak Filho 13-october-2005 ##
' ## Email: delphi [a.t] via.com.br ##
' ## Minor modifications by Morten Christensen 16-october-2005 ##
' ## Email: mc [a.t] mc.cx ##
' ## Modified Radams 2.14.06 ##
' ## Email: **********************##
'###########################################################################
Dim MyID
Dim strParams
Dim objShell
CONST VIEWER_PATH = """%PROGRAMFILES%\UltraVNC\vncviewer.exe"""
CONST PROXY = "127.0.0.1:5901"
' Set comment-mark on line below, if you want an ID-dialog-box and not the Randomize Timer for the ID
' MyID = Int(Rnd*8999)+1000
' Uncomment on of the lines below, if you want to enter the ID in a dialog box
MyID = InputBox("Enter a Session ID (from 1000 to 9999)," & Chr(13) & Chr(10) & "then provide client with ID for this session."
& Chr(13) & Chr(10) & Chr(13) & Chr(10) & "Press OK to launch session: ", "Initiate Support Session")
if ((MyID>=1000) and (MyID<=9999)) then
blnOutput = True
end if
' Launch VNC Viewer with Proxy param and a Random ID
Set objShell = CreateObject("WScript.Shell")
strParams = " ID:" & MyID & " -proxy " & PROXY
objShell.Run VIEWER_PATH & strParams
' There are other params. Look at your UltraVNC installation folder
' for the documentation, usually:
' %programfiles%\UltraVNC\doc\install\cmdline.html
Works ok unless you do something wrong in which case there aren't any customized error messages. Does anyone have any input?
Thanks!
[topic=4174][/topic]
It does what I'm looking for and is much cleaner.
Thanks to William Knak and mortenchristensen for this script.
This script is intended to be run on the machine hosting repeater (i assume from the code) by running a shortcut on a workstation.
I've modified it slightly to be:
'###########################################################################
' ## UltraVNC Viewer SingleClick Launcher II ##
' ## Autor: William D. Knak Filho 13-october-2005 ##
' ## Email: delphi [a.t] via.com.br ##
' ## Minor modifications by Morten Christensen 16-october-2005 ##
' ## Email: mc [a.t] mc.cx ##
' ## Modified Radams 2.14.06 ##
' ## Email: **********************##
'###########################################################################
Dim MyID
Dim strParams
Dim objShell
CONST VIEWER_PATH = """%PROGRAMFILES%\UltraVNC\vncviewer.exe"""
CONST PROXY = "127.0.0.1:5901"
' Set comment-mark on line below, if you want an ID-dialog-box and not the Randomize Timer for the ID
' MyID = Int(Rnd*8999)+1000
' Uncomment on of the lines below, if you want to enter the ID in a dialog box
MyID = InputBox("Enter a Session ID (from 1000 to 9999)," & Chr(13) & Chr(10) & "then provide client with ID for this session."
& Chr(13) & Chr(10) & Chr(13) & Chr(10) & "Press OK to launch session: ", "Initiate Support Session")
if ((MyID>=1000) and (MyID<=9999)) then
blnOutput = True
end if
' Launch VNC Viewer with Proxy param and a Random ID
Set objShell = CreateObject("WScript.Shell")
strParams = " ID:" & MyID & " -proxy " & PROXY
objShell.Run VIEWER_PATH & strParams
' There are other params. Look at your UltraVNC installation folder
' for the documentation, usually:
' %programfiles%\UltraVNC\doc\install\cmdline.html
Works ok unless you do something wrong in which case there aren't any customized error messages. Does anyone have any input?
Thanks!
Last edited by gtdriver94 on 2009-07-21 19:43, edited 1 time in total.
-
- 8
- Posts: 16
- Joined: 2006-02-13 02:45
- Location: RI USA
????
Guess not. Boy I'd figure this would be an in-demand option, no? How are you guys using SC??? I'm a pc/networking tech with 20-30 service calls a week. This is my most important project. Is this not an important aspect of the business? What are people using SC for?
Interested in finding out.......
Interested in finding out.......
This is my batch:
works fine.
Code: Select all
@echo off
Color 1F
set /p ra=Bitte IP oder FQDN des Repeaters eingeben:
set /p id=Bitte ID eingeben:
set msrc4pluginkey=tools\rc4.key
start tools\vncviewer -proxy %ra%::5901 ID:%id% /dsmplugin tools\MSRC4plugin_NoReg.dsm
Last edited by MrC00l on 2006-04-15 13:50, edited 1 time in total.