GithubHelp home page GithubHelp logo

Comments (2)

WeijieH avatar WeijieH commented on June 21, 2024

我看你的的代码里,
如果按下不放了,数组keysOnHold 里相应键值赋值为 1

但因为有事后得手动操作下,特别是鼠标左键,这个键又是交互键....
如果按了后,相当于,左键弹起,然后执行左键单击1次,但代码里还是记录它为按下状态

我觉得需要考虑按下1234 ,左键,右键的处理(设置为按下不放时),将keysOnHold重设为0
然后按下的处理需要做个循环心跳检测

或者是做个循环补按的操作,强制弹起,再强制按下...因为有时候左键的跑动和战斗判断很诡异

keysOnHold我本意是想弄成一个类似python中set的Hashtable的,它只存储有哪些键被设置成保持按下状态。但是ahk好像没有这种数据类型,最接近的就是一个类似于dict的字典类型。所以它的值为0或者是1无所谓,只要这个key在里面,它就应该是保持按下的状态。
在StopMarco里面我会把keysOnHold里存储的键值一一弹出,然后取消掉下压状态。
你是把左键设置为了一直按下后遇到问题了吗?

from d3keyhelper.

WeijieH avatar WeijieH commented on June 21, 2024

issue因为没有收到后续回复所以我先关闭了

from d3keyhelper.

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.