Skip to content

Fix virtual desktop switching on Windows 11 by using updated pyvda API - #960

Merged
LexiconCode merged 2 commits into
dictation-toolbox:masterfrom
amirf147:fix-pyvda-win11
May 4, 2026
Merged

Fix virtual desktop switching on Windows 11 by using updated pyvda API#960
LexiconCode merged 2 commits into
dictation-toolbox:masterfrom
amirf147:fix-pyvda-win11

Conversation

@amirf147

@amirf147 amirf147 commented May 3, 2026

Copy link
Copy Markdown
Contributor

Reason for change:
The outdated procedural API for pyvda (e.g., pyvda.GoToDesktopNumber()) fails on Windows 11 due to COM interface changes, resulting in the following error:
_ctypes.COMError: (-2147467262, 'No such interface supported', (None, None, None, 0, None))
Changes:

  • Updated windows_virtual_desktops.py to use pyvda's newer object-oriented API (VirtualDesktop, AppView).
  • Bumped pyvda requirement to version 0.5.0 in requirements.txt and requirements-dev.txt.

@LexiconCode LexiconCode self-assigned this May 3, 2026
@LexiconCode LexiconCode added the BugFix Resolves unexpected behavior from existing features. label May 3, 2026
@LexiconCode
LexiconCode self-requested a review May 3, 2026 04:07
@LexiconCode LexiconCode assigned amirf147 and unassigned LexiconCode May 3, 2026
@LexiconCode

Copy link
Copy Markdown
Member

Thank you! @amirf147

@LexiconCode
LexiconCode merged commit 985ba92 into dictation-toolbox:master May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BugFix Resolves unexpected behavior from existing features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants