sibson / vncdotool

A command line VNC client and python library
Other
451 stars 120 forks source link

Artifacts on screenshots #275

Open GiulioBen opened 10 months ago

GiulioBen commented 10 months ago

Dear community, i'm facing a problem with the screenshots:

When I'm connected to the server through my UltraVNC client, everything works like a charm.

When i disconnect and i use the vncdotool inside a python script, the screenshots are full of artifacts. I attach an image as example (it's only a part of the screen). Sometimes it shows the old screen (when i disconnected), other times the colors are wrong.

image

The VNC server is very old, running windows XP, but my UltraVNC client is not having any trouble.

When i connect i have this log

2023-11-16 17:27:54,636 - twisted - INFO - Starting factory <vncdotool.client.VNCDoToolFactory object at 0x000002DA28840E20>
2023-11-16 17:27:54,638 - twisted - INFO - Protocol version 3.6 not supported
2023-11-16 17:27:54,639 - twisted - INFO - Using protocol version 3.3
2023-11-16 17:27:55,704 - twisted - INFO - Native PixelFormat(bpp=32, depth=32, bigendian=False, truecolor=True, redmax=255, greenmax=255, bluemax=255, redshift=16, greenshift=8, blueshift=0) bytes=4
2023-11-16 17:27:55,704 - twisted - INFO - Offering <Encoding.RAW: 0>
2023-11-16 17:27:55,704 - twisted - INFO - Offering <Encoding.PSEUDO_DESKTOP_SIZE: -223>
2023-11-16 17:27:55,704 - twisted - INFO - Offering <Encoding.PSEUDO_LAST_RECT: -224>
2023-11-16 17:27:55,704 - twisted - INFO - Offering <Encoding.PSEUDO_QEMU_EXTENDED_KEY_EVENT: -258>
2023-11-16 17:28:06,732 - twisted - INFO - x=0 y=0 w=1024 h=768 <Encoding.RAW: 0>

I just use this syntax to connect

client = api.connect(ipVNC, pwVNC)

I tried to do several consequent screenshots but it seems that the server is not updating at all the image.

Thank you for the support.

Best

pmhahn commented 2 months ago

Please provide more information: