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=624, title='Default IME', hwnd=66212, length=12, tid=628, status='invisible', coords_client=(0, 0, 0, 0), dim_client=(0, 0), coords_win=(0, 0, 0, 0), dim_win=(0, 0)),
WindowInfo(pid=624, title='EPPCCMON', hwnd=66210, length=9, tid=628, status='invisible', coords_client=(0, 1424, 0, 728), dim_client=(1424, 728), coords_win=(182, 1622, 182, 949), dim_win=(1440, 767)),
WindowInfo(pid=1004, title='Default IME', hwnd=131798, length=12, tid=3912, status='invisible', coords_client=(0, 0, 0, 0), dim_client=(0, 0), coords_win=(0, 0, 0, 0), dim_win=(0, 0)),
WindowInfo(pid=1032, title='Administrator: ', hwnd=262166, length=17, tid=940, status='invisible', coords_client=(0, 705, 0, 45), dim_client=(705, 45), coords_win=(0, 738, 0, 84), dim_win=(738, 84)),
WindowInfo(pid=1324, title='Default IME', hwnd=66174, length=12, tid=8332, status='invisible', coords_client=(0, 0, 0, 0), dim_client=(0, 0), coords_win=(0, 0, 0, 0), dim_win=(0, 0)),
WindowInfo(pid=1324, title='Default IME', hwnd=66178, length=12, tid=10192, status='invisible', coords_client=(0, 0, 0, 0), dim_client=(0, 0), coords_win=(0, 0, 0, 0), dim_win=(0, 0)),
WindowInfo(pid=1324, title='Default IME', hwnd=66186, length=12, tid=9656, status='invisible', coords_client=(0, 0, 0, 0), dim_client=(0, 0), coords_win=(0, 0, 0, 0), dim_win=(0, 0)),
WindowInfo(pid=1324, title='VBoxPowerNotifyClass', hwnd=66184, length=21, tid=9656, status='invisible', coords_client=(0, 98, 0, 98), dim_client=(98, 98), coords_win=(-200, -100, -200, -100), dim_win=(100, 100)),
WindowInfo(pid=1324, title='VBoxUsbLibClass', hwnd=66176, length=16, tid=10192, status='invisible', coords_client=(0, 98, 0, 98), dim_client=(98, 98), coords_win=(-200, -100, -200, -100), dim_win=(100, 100)),
WindowInfo(pid=1324, title='VirtualBox Interface', hwnd=66172, length=21, tid=8332, status='invisible', coords_client=(0, 0, 0, 0), dim_client=(0, 0), coords_win=(-200, -199, -200, -199), dim_win=(1, 1)),
....
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
Built Distribution
Close
Hashes for ctypes_window_info-0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e1d2df84609a744935e5d1ec96ea553965d6413d99072d0af7c2181734d1ce5 |
|
MD5 | 87df49bcca96f70f714242b305bc3a07 |
|
BLAKE2b-256 | 7ccb8fd691b78e3de3a32157f8d9a7564951086e0a28b4fca39d1d19ff72a36a |