VNC not working properly
Let's take an example:
vncscreen = sikulix.
vncscreen.capture() # works perfect -- gets a screen capture of the initial screen that just connected
vncscreen.
vncscreen.
vncscreen.capture() # FAILS -- still gives the original (initial) screen capture
vncscreen.
Any ideas/suggestions would be greatly appreciated.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Sikuli Edit question
- Assignee:
- No assignee Edit question
- Last query:
- 2018-07-24
- Last reply:
- 2018-07-25
Ven Karri (imperialguy) said : | #1 |
Also, FYI: Running Tiger VNC Server on Cent OS 7
RaiMan (raimund-hocke) said : | #2 |
what SikuliX?
Ven Karri (imperialguy) said : | #3 |
The latest nightly build 1.1.3
RaiMan (raimund-hocke) said : | #4 |
ok, I have to check.
... will try my very best ;-)
Ven Karri (imperialguy) said : | #5 |
Okay thanks
Ven Karri (imperialguy) said : | #6 |
Hi Raiman, any updates on this?
RaiMan (raimund-hocke) said : | #7 |
Sorry, other priorities.
Earliest during monday.
Ven Karri (imperialguy) said : | #8 |
Okay
RaiMan (raimund-hocke) said : | #9 |
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(
if not vs:
print "no connection"
exit()
img = "_selectTask.png"
vs.doubleClick(img) # opens a new frontmost window
vs.hover(
if vs.exists(
vs.type(Key.F4, Key.ALT) # close window
vs.stop()
I captured the images with a helper script:
vs = vncStart(
if not vs:
print "no connection"
exit()
wait(1) # to avoid a black screen at startup
cap = vs.userCapture(
if cap:
image = input()
cap.saveInBun
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.
Ven Karri (imperialguy) said : | #10 |
No worries.
I think the problem is specific to Cent OS.
Is there anyways you can test it against Tiger VNC server running on Cent OS (with any GUI you prefer, I use xcfe) ?
RaiMan (raimund-hocke) said : | #11 |
--- you can test it against Tiger VNC server running on Cent OS
Sorry, I cannot do that: lack of time, resources and Linux know-how.
Can you help with this problem?
Provide an answer of your own, or ask Ven Karri for more information if necessary.