isobit / win10-desktop-switcher

A windows 10 executable for switching directly between virtual desktops, useful for AutoHotKey.
17 stars 1 forks source link

Not working on Windows 11 #3

Open klazutin opened 3 years ago

klazutin commented 3 years ago

I was enjoying the tool on Windows 10, unfortunately it stopped working after upgrading to Windows 11. It now crashes with:

Unhandled Exception: System.InvalidCastException: Specified cast is not valid.
   at DesktopSwitcher.IServiceProvider10.QueryService(Guid& service, Guid& riid)
   at DesktopSwitcher.Program.Main(String[] args)
roel-v commented 2 years ago

+1 from me. If you could document how to get the relevant GUIDs, I can look them up myself...

roel-v commented 2 years ago

In the mean time, this PowerShell script: https://www.powershellgallery.com/packages/VirtualDesktop works on various versions of Windows.

isobit commented 1 year ago

Hey folks, sorry it took so long to respond to this! Unfortunately I haven't used Windows as a daily driver for some time so I haven't been motivated to add support for Windows 11. Hopefully it is just a matter of finding new GUIDs but honestly I can't recall myself how I discovered them for Windows 10 as it's been so long. I'll do some cursory research, but also totally open to any contributions if anyone discovers how to add support for Windows 11.