ahk-wmutil


Nameahk-wmutil JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/spyoungtech/ahk-wmutil
SummaryA Python AHK extension providing monitor functionality
upload_time2024-07-09 23:26:21
maintainerNone
docs_urlNone
authorSpencer Young
requires_python>=3.8.0
licenseNone
keywords ahk autohotkey windows mouse keyboard automation pyautogui wmutil screeninfo
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ahk-wmutil

This is an extension package intended to be used with the Python [ahk](https://github.com/spyoungtech/ahk) package. 
It adds functionality provided by the [`wmutil`](https://github.com/spyoungtech/wmutil) package into a convenient 
ahk extension.

## Installation

```
pip install ahk-wmutil
```

## Usage


```python
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()
```


Possible future work:

- [ ] A customized `Monitor` class that provides additional functionality, like listing all windows on a monitor
- [ ] Easy positioning of windows within a monitor (e.g., split left/right, quadrants, etc.)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/spyoungtech/ahk-wmutil",
    "name": "ahk-wmutil",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8.0",
    "maintainer_email": null,
    "keywords": "ahk, autohotkey, windows, mouse, keyboard, automation, pyautogui, wmutil, screeninfo",
    "author": "Spencer Young",
    "author_email": "spencer.young@spyoung.com",
    "download_url": "https://files.pythonhosted.org/packages/6b/c8/f2d3a51d3c0b8bacfbbf67a592485ed22980596cc4be670624dec6b3f710/ahk_wmutil-0.1.0.tar.gz",
    "platform": null,
    "description": "# ahk-wmutil\n\nThis is an extension package intended to be used with the Python [ahk](https://github.com/spyoungtech/ahk) package. \nIt adds functionality provided by the [`wmutil`](https://github.com/spyoungtech/wmutil) package into a convenient \nahk extension.\n\n## Installation\n\n```\npip install ahk-wmutil\n```\n\n## Usage\n\n\n```python\nfrom ahk import AHK\nimport wmutil\nfrom ahk_wmutil import wmutil_extension\n\nahk = AHK(extensions=[wmutil_extension])\n\nwin = ahk.active_window\n\nprimary_monitor = wmutil.get_primary_monitor()\n\n# move a window to a given monitor\nwin.move_to_monitor(primary_monitor)\n\n# Get the monitor the window is using\nmon = win.get_monitor() \nassert mon == primary_monitor # True\n\n# Get the monitor that the mouse cursor is on\nmon = ahk.monitor_from_mouse_position()\n```\n\n\nPossible future work:\n\n- [ ] A customized `Monitor` class that provides additional functionality, like listing all windows on a monitor\n- [ ] Easy positioning of windows within a monitor (e.g., split left/right, quadrants, etc.)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Python AHK extension providing monitor functionality",
    "version": "0.1.0",
    "project_urls": {
        "Documentation": "https://github.com/spyoungtech/ahk-wmutil",
        "Funding": "https://github.com/sponsors/spyoungtech/",
        "Homepage": "https://github.com/spyoungtech/ahk-wmutil",
        "Source": "https://github.com/spyoungtech/ahk-wmutil",
        "Tracker": "https://github.com/spyoungtech/ahk-wmutil/issues"
    },
    "split_keywords": [
        "ahk",
        " autohotkey",
        " windows",
        " mouse",
        " keyboard",
        " automation",
        " pyautogui",
        " wmutil",
        " screeninfo"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "73f8bea4978951b05953c0c5cfe125f66ff602f26914d050183d4afd26f923f6",
                "md5": "876dac831aa199aa57d091c6108780f6",
                "sha256": "27051adc081331697e6afb79bbbdd8272d1e737e45c900250522e05ec126bd97"
            },
            "downloads": -1,
            "filename": "ahk_wmutil-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "876dac831aa199aa57d091c6108780f6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8.0",
            "size": 3983,
            "upload_time": "2024-07-09T23:26:19",
            "upload_time_iso_8601": "2024-07-09T23:26:19.344473Z",
            "url": "https://files.pythonhosted.org/packages/73/f8/bea4978951b05953c0c5cfe125f66ff602f26914d050183d4afd26f923f6/ahk_wmutil-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6bc8f2d3a51d3c0b8bacfbbf67a592485ed22980596cc4be670624dec6b3f710",
                "md5": "720aee7f50d4bc9a4b83b276d2533995",
                "sha256": "2c8a7b631f9d73f2dae13c8c8a3e25eec3a71986f6a00bdd4cb961a171adb3bf"
            },
            "downloads": -1,
            "filename": "ahk_wmutil-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "720aee7f50d4bc9a4b83b276d2533995",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8.0",
            "size": 3770,
            "upload_time": "2024-07-09T23:26:21",
            "upload_time_iso_8601": "2024-07-09T23:26:21.100785Z",
            "url": "https://files.pythonhosted.org/packages/6b/c8/f2d3a51d3c0b8bacfbbf67a592485ed22980596cc4be670624dec6b3f710/ahk_wmutil-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-09 23:26:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "spyoungtech",
    "github_project": "ahk-wmutil",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "ahk-wmutil"
}
        
Elapsed time: 0.33440s