from a Windows system, this can be automated pretty easily, too.

Here's a WSH script that will return the info in an array if you ever need to
peak at the resolutions used automatically.

'GetVNCDims.vbs
Dims = VNCDeskDim("192.168.1.3:5800")
Wscript.Echo Dims(0),Dims(1)


Function VNCDeskDim(sHost)
 sData = StringHTMLViaXML ("http://"; & sHost)
 aDat0 = Split(sData,vbLf)
 aDat1 = Split(Replace(aDat0(1),">",""))
 for x = 3 to 4
  ExecuteGlobal aDat1(x)
 next
 VNCDeskDim = array(width, height - 32)
End Function

Function StringHTMLViaXML(sURL)
 ' Create an xmlhttp object:
 Dim oXml
 Set oXml = CreateObject("Microsoft.XMLHTTP")
 ' Opens the connection to the remote server.
 oXml.open "GET",sURL, false
 ' Actually Sends the request and returns the data:
 oXml.send
 Do
 wscript.sleep 10
 Loop While oXml.ReadyState<>4
 StringHTMLViaXML = oXml.responseText
End Function




----- Original Message -----
From: "Beerse, Corni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, 2002-05-21 02:36
Subject: RE: How to find server desktop size?


> > -----Original Message-----
> > From: Shing-Fat Fred Ma [mailto:[EMAIL PROTECTED]]
> >
> > Is there a way to determine what the -geometry specification
> > was when vncserver was started (possibly many moons
> > ago)?  This information doesn't seem to be in the log file.
> >
>
> Yes, there is: Connect your browser to the server
> (http://vncservermachine:5800/) and have a look in the html source
> (View->PageSource). There it shows the height and width of the java applet
> in which the javaviewer will run:
>
> <APPLET CODE=vncviewer.class ARCHIVE=vncviewer.jar WIDTH=800 HEIGHT=632>
>
> The widht is the same as the viewer width (here 800).
> The height is about 32 points less than the viewer height (here 632 - 32 =
> 600).
>
>
>
> CBee
> ---------------------------------------------------------------------
> To unsubscribe, mail [EMAIL PROTECTED] with the line:
> 'unsubscribe vnc-list' in the message BODY
> See also: http://www.uk.research.att.com/vnc/intouch.html
> ---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, mail [EMAIL PROTECTED] with the line:
'unsubscribe vnc-list' in the message BODY
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------

Reply via email to