Copied from my GitHub techdiary

Virtual desktops in Wox

Success Criteria

  • Able to switch virtual desktops from WoX

P/Invoke via Python

I can switch virtual desktops from python app.

Access GetDesktopNumber from FFI to load dll.

I can switch virtual desktops from wox

My plugin:

However, there’s an issue where wox crashes tracked:


Build Virtual Desktop Accesor There is a C++ Bridge DLL that reexposes a nicer interface to the COM APIs. Needs VS 2017 with C++ DLL to build and use.

  • Can’t build stdafx.h

This occurs if you clone using wsl. Clone from windows and it works.

  • Random calls in the API fail

Don’t care - ChangeDesktop is the only API I need to use, so will use that.