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.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0494c7b405e3823279e2a9823dd6d0a8754ca3a341bd4cc4e9266261021501a2 |
|
MD5 | 1883232becafd79f6ec4c7d8fd3eecda |
|
BLAKE2b-256 | 245efae830b16d518560427ceed7430a3681ed9cc29d82568a59b8ede767ad2a |