Metadata-Version: 2.4
Name: qx-game-bot
Version: 0.1.3
Summary: Add your description here
Author-email: Yoki <yokiyuqian@gmail.com>
Requires-Python: >=3.11
Requires-Dist: mss>=10.0.0
Requires-Dist: opencv-contrib-python>=4.10.0.84
Requires-Dist: paddleocr>=2.9.1
Requires-Dist: paddlepaddle>=2.6.2
Requires-Dist: peewee>=3.17.8
Requires-Dist: pydantic>=2.10.4
Requires-Dist: pynput>=1.7.7
Requires-Dist: setuptools>=75.8.0
Description-Content-Type: text/markdown

# qx-game-bot

Mac, Linux, Windows 跨平台桌面端游戏脚本框架

## 功能

- 键鼠模拟 ✅
- 键鼠录制 ✅
- 屏幕录制 ✅
- 图色匹配 ✅
- 文字OCR识别 ✅
- 怪物检测
- 目标跟踪
- 多线程任务
- 基于web的GUI、中控

(先画饼， 慢慢实现...)

## 使用
```py
from qx_game_bot import QxGameBotFramework

bot = QxGameBotFramework()


def helloAndCopyPaste():
    bot.delay(100).keyTap("enter").keyType("# Hello World")
    bot.keyPress("cmd").keyPress("shift").keyPress("left")
    bot.keyRelease("cmd").keyRelease("shift").keyRelease("left")
    bot.keyTapAll("cmd", "c")
    bot.keyTapAll("cmd", "enter")
    bot.keyTapAll("cmd", "v")
    bot.delay(1500)


def releaseAll():
    bot.keyPress("enter").keyPress("backspace").keyReleaseAll()
    bot.keyType("write some thing wrong").delay(500)
    bot.keyPress("alt").keyPress("backspace").keyReleaseAll().keyTap("backspace")


def clickOnMatchedImg():
    result = bot.matchImgOnScreen("example.png", 0.75, retryDuration=1000)
    if not result:
        print("No match")
    bot.click(result, position="center")


helloAndCopyPaste()
releaseAll()
```
