跳转到主要内容

提供监控功能的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 查看哈希值)

上传时间 Python 3

由以下机构支持