Python implementation of the VirtualDesktopAccessor for manipulating Windows 10 virtual desktops.
Project description
py-VirtualDesktopAccessor
Implements a subset of the functionality offered by https://github.com/Ciantic/VirtualDesktopAccessor, written in pure Python and installable via pip.
pip install pyvda
Usage
The following functions are implemented. The only deliberate difference with the behaviour of Ciantic's original DLL is that desktops here are 1-indexed, as this reflects the numbers shown in the task view.
def GetCurrentDesktopNumber() -> int:
def GetDesktopCount() -> int:
def MoveWindowToDesktopNumber(hwnd: int, number: int) -> None:
def GoToDesktopNumber(number: int) -> None:
def GetWindowDesktopNumber(hwnd: int) -> int:
Example usage:
import pyvda
import win32gui
number_of_active_desktops = pyvda.GetDesktopCount()
current_desktop = pyvda.GetCurrentDesktopNumber()
current_window_handle = win32gui.GetForegroundWindow()
pyvda.MoveWindowToDesktopNumber(current_window_handle, 1)
pyvda.GoToDesktopNumber(3)
window_moved_to = pyvda.GetWindowDesktopNumber(current_window_handle)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyvda-0.0.3.tar.gz.
File metadata
- Download URL: pyvda-0.0.3.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcde896262dfa7ffbb7a162b9fe02cc6fa2c57bf5bfe1219110252d462c85027
|
|
| MD5 |
930e207965fcad63105d63fdc9c846ec
|
|
| BLAKE2b-256 |
b5c9e80e07d497984be5b3750304e9f03fc14a3fab7aca79ec28f195d111a8ca
|
File details
Details for the file pyvda-0.0.3-py3-none-any.whl.
File metadata
- Download URL: pyvda-0.0.3-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f962505ce305bd4a1c0ac110bdfd66940d34b583fc8ea009871d3a3842185363
|
|
| MD5 |
98af8b47ab322c52fa6b04dfc541a3b9
|
|
| BLAKE2b-256 |
6b515ad626b4247c3477172c5ededc9554c0aa81757e4138c3c5dc12ef9359e2
|