← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #670809]: VNC not working properly

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Sorry for the delay.

I tested with 1.1.3 on a macOS 10.13 against a TightVNC-Server running
on a Windows 10 machine.

Everything worked as expected.

# test script
vs = vncStart("192.168.2.120")
if not vs:
  print "no connection"
  exit()
img = "_selectTask.png"
vs.doubleClick(img) # opens a new frontmost window
vs.hover("_actOnTask.png") # image inside the new window
if vs.exists("_actOnTask.png"): # again search the image
  vs.type(Key.F4, Key.ALT) # close window 
vs.stop()

I captured the images with a helper script:
vs = vncStart("192.168.2.120")
if not vs:
  print "no connection"
  exit()
wait(1) # to avoid a black screen at startup
cap = vs.userCapture("capture")
if cap:
  image = input()
  cap.saveInBundle(image)
vs.stop()

... and then loaded the images to the working script using "Insert
Image" in the IDE

So there must be something in your special setup, where I cannot help
you, sorry.

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