Skip to main content

Get window/process information with ctypes, no dependencies

Project description

Get window information with ctypes

pip install ctypes-window-info
from ctypes_window_info import get_window_infos

get_window_infos()





[[WindowInfo(pid=88, title='Base_PowerMessageWindow', windowtext='', hwnd=197614, length=1, tid=9668, status='invisible', coords_client=(0, 0, 0, 0), dim_client=(0, 0), coords_win=(0, 0, 0, 0), dim_win=(0, 0), class_name='Base_PowerMessageWindow', path='C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe'),

 WindowInfo(pid=88, title='Chrome_StatusTrayWindow', windowtext='', hwnd=197592, length=1, tid=9668, status='invisible', coords_client=(0, 0, 0, 0), dim_client=(0, 0), coords_win=(0, 0, 0, 0), dim_win=(0, 0), class_name='Chrome_StatusTrayWindow', path='C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe'),

 WindowInfo(pid=88, title='Chrome_SystemMessageWindow', windowtext='', hwnd=197600, length=1, tid=9668, status='invisible', coords_client=(0, 130, 0, 10), dim_client=(130, 10), coords_win=(0, 136, 0, 39), dim_win=(136, 39), class_name='Chrome_SystemMessageWindow', path='C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe'),

 WindowInfo(pid=88, title='Chrome_WidgetWin_0', windowtext='', hwnd=197580, length=1, tid=9668, status='invisible', coords_client=(0, 0, 0, 0), dim_client=(0, 0), coords_win=(0, 0, 0, 0), dim_win=(0, 0), class_name='Chrome_WidgetWin_0', path='C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe'),

 WindowInfo(pid=88, title='Chrome_WidgetWin_0', windowtext='', hwnd=197606, length=1, tid=9668, status='invisible', coords_client=(0, 1424, 0, 728), dim_client=(1424, 728), coords_win=(182, 1622, 182, 949), dim_win=(1440, 767), class_name='Chrome_WidgetWin_0', path='C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe'),

 WindowInfo(pid=88, title='Chrome_WidgetWin_1', windowtext='', hwnd=2492886, length=1, tid=9668, status='invisible', coords_client=(0, 64, 0, 64), dim_client=(64, 64), coords_win=(-1, 63, 1028, 1092), dim_win=(64, 64), class_name='Chrome_WidgetWin_1', path='C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe'),

 ....

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

ctypes_window_info-0.12.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

ctypes_window_info-0.12-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file ctypes_window_info-0.12.tar.gz.

File metadata

  • Download URL: ctypes_window_info-0.12.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for ctypes_window_info-0.12.tar.gz
Algorithm Hash digest
SHA256 d317506ec6d27dae3210a2a2f5bfba7d1f98ce46118560147eb8667fbe0e20ae
MD5 9339285d68f57234218d890d36901b22
BLAKE2b-256 3dbdd76836b076890dad0450c701c56465dfb052b6af06461733375bc22974ed

See more details on using hashes here.

Provenance

File details

Details for the file ctypes_window_info-0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for ctypes_window_info-0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 1364217571add939711cac3c4cbd56fdece6c9d9eb60f4fab9aa4e5aeaf1f256
MD5 d208a945a8aa7161acea4c9a52883e57
BLAKE2b-256 4d9166025a0cb7fa7f13e414d92f841b4c52d82285b3c820868d78a9f99435c1

See more details on using hashes here.

Provenance

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