Skip to main content

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)

Uploaded Source

Built Distribution

pyWinActivate-1.0.0-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page