GithubHelp home page GithubHelp logo

Comments (7)

datourezi avatar datourezi commented on May 13, 2024 2

谢谢提供的神器,哈哈哈

from keymousego.

taojy123 avatar taojy123 commented on May 13, 2024 1

这有点久远了,我得翻一翻代码才能回忆起来。
源码中 #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.

datourezi avatar datourezi commented on May 13, 2024

好的,那就没事了,我主要修改操作文件让操作更灵活。

from keymousego.

pozhuzi avatar pozhuzi commented on May 13, 2024

想问一下次数好像仅限定于0-100,可不可以改为更大的数

from keymousego.

taojy123 avatar taojy123 commented on May 13, 2024

想问一下次数好像仅限定于0-100,可不可以改为更大的数

你好,你说的次数指的是哪里?能不能把对应的代码一起贴出来下

from keymousego.

pozhuzi avatar pozhuzi commented on May 13, 2024

描述:运行exe文件时,修改执行次数超过100的,都会被默认为100。
self.stimes = wx.SpinCtrl(id=wxID_FRAME1STIMES, initial=0, max=100 //Frame1.py (102行),所以我怀疑是不是这里限制了次数

from keymousego.

taojy123 avatar taojy123 commented on May 13, 2024

恩,是的。
这里当时考虑分为两种情况,限制次数循环和无限循环,限制次数的话一般都是循环个几次或十几次,再多的话要么就无限循环了,比较少出现循环几百次后停止这样的情况。
如果你正好遇到了需要循环几百次后停止的需求,你可以修改一下代码,将 max=100 改成更大的值,或者直接删掉 max=100,然后重新编译一下,创建一个 “无最大上限的版本”,哈哈。

from keymousego.

Related Issues (20)

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.