Comments (3)
你也是使用 pynput 监听和重放的是吧。
这个可能是 pynput 的问题,我之前也想开发 scroll 功能的,也是遇到坑放弃了。
你可以再想象办法如果能解决的话,给我 PR 哈。
我觉得可以先试下单独用 pynput 监听鼠标滚轮向下滚 3 次,然后看监听到的内容对象是如果的。
再使用 pynput 模拟滚轮向下动作。看下这中间的误差发生在哪里。
比如你模拟滚轮向下 3 次,实际屏幕只向下走了原来的一半。那以后就把录制的 scroll 脚本中次数乘以 2,当然这是想象中的理想情况。实际可能需要做更多的实验和研究。
from keymousego.
scroll记录的-1和+1代表的是鼠标滚轮滑动一格,但是在运行脚本的时候scroll需要的是像素变化,我因此尝试了pyautogui和win32api,需要的都是像素值,卡了很久,放弃了
另外,问个题外话,您用什么打包的啊才10M,我用pyinstaller打包出来40M
from keymousego.
一般 pyinstaller 打出来的是 10M 差不多的,你是不是把 pywin32 这些也不小心打包进去了。
另外我安装的是最新版本的 pyinstaller,系统是 win7
from keymousego.
Related Issues (20)
- 源码编译完在Mac录制成功 HOT 5
- 运行环境:windows 11 pro英文版,启动执行有中文输入报错。
- 鼠标运行速度太慢 调到500时也只是正常移动速度。
- 建议增加一个定时任务
- 鼠标点击跨软件时操作报错'SetCursorPos' 'Access is denied.'
- MAC下启动报错KeyError: 'CFMachPortCreateRunLoopSource'
- 可以增加一个定时执行吗 HOT 2
- win10运行exe文件报错 HOT 3
- 鼠标掉帧卡顿的问题
- 希望能加入不同分辨率之间的坐标转换的功能,非常感谢 HOT 2
- 其实这个key mouse库不是很好, 用pyautogui结合pydirectinput这两个库的鼠标键盘功能会更好用 HOT 8
- 还是需要添加一个停止按钮 HOT 1
- 截图保存功能
- keymousego打成keymomusego HOT 1
- 启动脚本无限循环后,该如何退出无限循环 HOT 1
- 功能增强借鉴建议 HOT 2
- 请问下为什么我命令行执行方式无法传参?会直接报错
- 跟众多其他人的建议一样,如果能够增加一个延时执行任务的功能会非常完美。当前的speed功能是不是跟延时执行是一个道理? HOT 4
- 建议增加鼠标穿透点击功能
- 艾尔登法环记录后一卡一卡的
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keymousego.