← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #668852]: How to connect to vnc using jython?

 

Question #668852 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/668852

    Status: Open => Answered

RaiMan proposed the following answer:
vnc = vncStart("192.168.3.15",5900)

you have to check wether vnc is not None before proceeding.

The internal error checking is not that gorgeous ;-) so if the
connection fails you will get back None.

So be sure a connection is possible.

vnc = vncStart("192.168.3.15") # sufficient - 5900 is the default
if not vnc:
    # do something that makes sense ;-)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.