提供监控功能的Python AHK扩展
项目描述
ahk-wmutil
这是一个旨在与Python ahk 包一起使用的扩展包。它将 wmutil
包提供的功能添加到一个方便的ahk扩展中。
安装
pip install ahk-wmutil
用法
from ahk import AHK
import wmutil
from ahk_wmutil import wmutil_extension
ahk = AHK(extensions=[wmutil_extension])
win = ahk.active_window
primary_monitor = wmutil.get_primary_monitor()
# move a window to a given monitor
win.move_to_monitor(primary_monitor)
# Get the monitor the window is using
mon = win.get_monitor()
assert mon == primary_monitor # True
# Get the monitor that the mouse cursor is on
mon = ahk.monitor_from_mouse_position()
可能未来的工作
- 一个定制的
Monitor
类,提供额外的功能,例如列出监视器上的所有窗口 - 在监视器内轻松定位窗口(例如,左右分割,四象限等。)
项目详情
下载文件
下载适用于您平台的应用程序。如果您不确定选择哪个,请了解有关安装包的更多信息。
源分布
ahk_wmutil-0.1.0.tar.gz (3.8 kB 查看哈希值)
构建版本
ahk_wmutil-0.1.0-py3-none-any.whl (4.0 kB 查看哈希值)
关闭
ahk_wmutil-0.1.0.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 2c8a7b631f9d73f2dae13c8c8a3e25eec3a71986f6a00bdd4cb961a171adb3bf |
|
MD5 | 720aee7f50d4bc9a4b83b276d2533995 |
|
BLAKE2b-256 | 6bc8f2d3a51d3c0b8bacfbbf67a592485ed22980596cc4be670624dec6b3f710 |
关闭
ahk_wmutil-0.1.0-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 27051adc081331697e6afb79bbbdd8272d1e737e45c900250522e05ec126bd97 |
|
MD5 | 876dac831aa199aa57d091c6108780f6 |
|
BLAKE2b-256 | 73f8bea4978951b05953c0c5cfe125f66ff602f26914d050183d4afd26f923f6 |