Activate and focus on any opened window by using the window title.
Project description
pyWinActivate
Just like WinActivate in AutoHotkey, this module lets you easily activate and focus an opened window.
Examples
from winActivate import winActivate, winWaitActive
# Activate window with partial winTitle string.
winActivate(window="Book1", titlematchmode=1)
# Activate window with exact winTitle string.
winActivate(window="Book1.xlsx - Excel", titlematchmode=0)
# Wait for the specified window to be active.
# You can pass an exception for a popup window's title. If not needed leave as None or skip entirely.
# Note: works only with a full title
winWaitActive(windowW=Book1.xlsx - Excel, exception="potential popup window")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyWinActivate-1.0.0.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for pyWinActivate-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc335093714c4a4afebea0eba78eb776d3c6aaa0bcf10b055db57a42325287ae |
|
MD5 | 2a2b5bf0ecfc5611d59612beda895529 |
|
BLAKE2b-256 | ec486f294321d59c9a8c48b0e1b96daf7e4717f72546778525c1afd9a6d7fc5f |