Giter VIP home page Giter VIP logo

pydamo's Introduction

pydamo简介

提供驱动级按键模拟, 以及修改内存、找图找色等功能.
需要管理员权限运行pycharm.
仅支持32位python.(64位解决方案: 基于Ctypes的VirtualKey)
对大漠插件的简单封装.

安装

pip install pydamo-test

2021.1.28日更新:

64位的前台模拟方案推荐: keyboard.
唯一的缺陷就是不支持后台键鼠.


使用

第一次使用时必须以管理员权限运行pycharm!

from pydamo_0 import Time, DM, Mouse

dm = DM()   # 可指定dm.dll路径DM(path), 若无法使用某些函数dm.f(), 则使用dm.dm.f()来调用.
ms = Mouse(dm)
tt = Time()

print(ms.position)                  # 当前鼠标位置

tt.sleep(1)
x, y = (0, 0)
ms.position = x, y                  # 移动鼠标
ms.click_right(x, y)                # 点击鼠标右键

更具体使用方式: 知乎笔记

使用条件:

1、32位的python才能运行;
2、最好使用管理员权限运行(包括pycharm、bat脚本和编译好的exe文件);
3、后台绑定挂机为付费的高级功能,我购买的注册码不一定能用很久, 一般用前台键鼠足够。

其它模拟方式:

1、64位python可以试试Ctypes实现驱动级模拟(前台);
2、如果不是D3D游戏的后台模拟的话,可以试试win API的系统级后台模拟SendMessage;
3、如果键盘为PS/2圆形接口的话,可用winio模块,但不支持USB键盘。

pydamo's People

Contributors

bode135 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.