Skip to content

Adds partial refresh and screenshot and some tests#11

Open
andrews239 wants to merge 1 commit intobarneygale:mainfrom
andrews239:AddsPartialRefreshAndScreenShot
Open

Adds partial refresh and screenshot and some tests#11
andrews239 wants to merge 1 commit intobarneygale:mainfrom
andrews239:AddsPartialRefreshAndScreenShot

Conversation

@andrews239
Copy link
Copy Markdown

@andrews239 andrews239 commented Mar 22, 2024

This synchronizes the update request sent and the expected result.

This allows you to get an image of part of the screen without having to transfer all the data from the server.

Partially solves infinite loop issue #9

Fix for #15

jeffmcjunkin added a commit to RogueValleyInformationSecurity/asyncvnc that referenced this pull request Jan 30, 2026
…nshot and Bell/Clipboard

PR barneygale#11 (partial refresh fix):
- Add Video.get_rect() for bounds validation
- Update is_complete(x, y, width, height) to check ROI only
- Update as_rgba(x, y, width, height) to return ROI only
- Fix screenshot() to pass ROI to both methods

This fixes the screenshot timeout issue where VMware's VNC server sends
incremental updates after UI changes (like clicks), causing is_complete()
to never return True when checking the entire buffer.

PR barneygale#14 (Bell/Clipboard fix):
- Fix UpdateType enum: BELL=2, CLIPBOARD=3 (was incorrectly swapped)
- Fix Clipboard.write() padding: b'\x06\x00\x00\x00' (was b'\x06\x00')

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant