Comments (7)
谢谢提供的神器,哈哈哈
from keymousego.
这有点久远了,我得翻一翻代码才能回忆起来。
源码中 #238行
record.append(['EK',event.MessageName,event.Message,event.Time - ttt,event.KeyID,event.Key,cname,dcid])
cname = win32gui.GetClassName(rhwnd)
dcid = win32gui.GetDlgCtrlID(rhwnd)
这两个参数是 windows 的窗口句柄,主要是给在 “后台模式” 用的,在 #375行处有用到这个。
PS: 不过键盘事件,还不支持后台模式,所以上面这个例子的最后两个数据暂时是没用的
from keymousego.
好的,那就没事了,我主要修改操作文件让操作更灵活。
from keymousego.
想问一下次数好像仅限定于0-100,可不可以改为更大的数
from keymousego.
想问一下次数好像仅限定于0-100,可不可以改为更大的数
你好,你说的次数指的是哪里?能不能把对应的代码一起贴出来下
from keymousego.
描述:运行exe文件时,修改执行次数超过100的,都会被默认为100。
self.stimes = wx.SpinCtrl(id=wxID_FRAME1STIMES, initial=0, max=100
//Frame1.py (102行),所以我怀疑是不是这里限制了次数
from keymousego.
恩,是的。
这里当时考虑分为两种情况,限制次数循环和无限循环,限制次数的话一般都是循环个几次或十几次,再多的话要么就无限循环了,比较少出现循环几百次后停止这样的情况。
如果你正好遇到了需要循环几百次后停止的需求,你可以修改一下代码,将 max=100 改成更大的值,或者直接删掉 max=100,然后重新编译一下,创建一个 “无最大上限的版本”,哈哈。
from keymousego.
Related Issues (20)
- 双击大部分时候不灵敏
- Can it click in specific window? HOT 3
- bat 调用的时候会出现此应用无法在你的电脑上运行 HOT 1
- ubuntu 下用 crontab 定時執行? HOT 1
- 兼容性问题win10,win11可以运行,win7运行 HOT 9
- UBuntu 22.04.3运行鼠标移动太慢
- 使用文档中添加extension会报错 HOT 8
- KeymouseGo_v5_1_1-mac 报错:未能打开文稿“KeymouseGo”。文本编码Unicode (UTF-8)不适用。 HOT 3
- 录屏自动执行功能很好用,希望能增加指定鼠标位置执行的功能,谢谢
- 为什么持续用一段时间(如一个小时)以后,就会出错?
- 源码编译完在Mac录制成功 HOT 5
- 运行环境:windows 11 pro英文版,启动执行有中文输入报错。
- 鼠标运行速度太慢 调到500时也只是正常移动速度。
- 建议增加一个定时任务
- 鼠标点击跨软件时操作报错'SetCursorPos' 'Access is denied.'
- MAC下启动报错KeyError: 'CFMachPortCreateRunLoopSource'
- 可以增加一个定时执行吗 HOT 1
- win10运行exe文件报错 HOT 2
- 鼠标掉帧卡顿的问题
- 希望能加入不同分辨率之间的坐标转换的功能,非常感谢 HOT 2
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.