GithubHelp home page GithubHelp logo

miozus / capslockmagic Goto Github PK

View Code? Open in Web Editor NEW
51.0 51.0 7.0 23.97 MB

Make Capslock Great Three!

Home Page: https://miozus.github.io/CapslockMagic

License: Apache License 2.0

AutoHotkey 95.30% HTML 1.55% Vim Script 3.15%
autohotkey capslock keymap macos windows

capslockmagic's People

Contributors

miozus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

capslockmagic's Issues

作者您好,冒昧在此向您请教一个问题

作者您好,很抱歉在此向您请教一个问题😂

我用 AHK 写了如下一段代码,试图实现以下功能:
短按 ; 键(< 400 ms)时仍然执行 ; 本身的功能,长按 ; 超过 400 ms 则直接返回,不执行任何功能

`;::
    KeyWait, `;, T0.4
    if(ErrorLevel) {
        ToolTip, ErrorLevel = 1
        return
    } else {
        ToolTip ErrorLevel = 0
        SendInput, {;}
    }
    return

我在运行该脚本后出现了下面两个问题:

  1. 根据 ToolTip 的提示,短按时 ErrorLevel 为 0 没有问题,但是长按时 ErrorLevel 先显示为 1 ,但在按键抬起后立刻变为 0
  2. 虽然短按时 ErrorLevel 为 0 ,但是并不能正常发送 ; 键,而是没有任何反应。并且如果短时间内多次触发 ; 键,会有如下所示的弹窗提示。我个人猜测是我的代码造成了递归调用,但是如果不这样写,我不知道该如何调用该按键自身😂

img

我尝试在您的代码中找到解决方法,但是没找到(可能是我基础不够没有发现),所以冒昧地使用 Issue 功能请教一下您,还望您可以指点一下我,万分感谢

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.