semvec/pypi-packages huggingface dataset:
WindowOp 0.1.0
Operations on window process
Requires Python: >=3.7

# - WindowOp (Window Operations) -

![image](docs/title-logo.png)

[![PyPi - 1.0.0](https://img.shields.io/static/v1?label=PyPi&message=v1.0.0&color=blue&logo=pypi)](https://pypi.org/project/WindowOp/)
[![License - MIT](https://img.shields.io/static/v1?label=License&message=MIT&color=orange)](https://github.com/SquareContent/WindowOp/blob/master/LICENSE)

------------------------------------

## Package Details

**Details and features**
- Window Operations is a pywin32 based package that makes it easy to perform operations on windowed processes. The package is divided into three segments:
    - Window Handler - Allows operations on window.
    - Mouse Api - Allows operations on physical mouse and on sending requests to window.
    - Keyboard Api - Allows operations on keyboard.

**Python Version**
- Supported Python versions: **3.7**, **3.8**, **3.9**, **3.10**.
    - Other older versions of Python are not currently supported.
    - These older versions will probably not be supported by @SquareContent himself, but if you want to contribute to the projectand make this package compatible with older versions of Python, Pull requests are always welcome.

------------------------------------

## Quick Examples

```python
from WindowOp import WindowHandler, send_message


# find the window with the given name and then
# hide it for your convenience.
hwnd = WindowHandler(window_name='Clicker Heroes')
hwnd.set_state('hide')

# run the loop until the boss is killed
while boss_was_killed:
    # send a message to the window to click at the given coordinates.
    send_message(hwnd, 856, 335, type='click', button='left', async_=False)

    # upgrade your character after each monster killed.
    if monster_was_killed:
        level_up()

# share the game progress by taking a picture of the screen
# and show the window again at the end of the program.
share_image( hwnd.get_screenshot() )
hwnd.set_state('show')
```

------------------------------------

## Install
To install the package in your Python environment pip install WindowOp
```
pip install WindowOp
```

------------------------------------

## Links
Project files can be found at:

- [GitHub Repo](https://github.com/SquareContent/WindowOp)
- [PyPi link](https://pypi.org/project/WindowOp/)