【问题标题】:Autohotkey with unicode and KeyWait / Long press带有 unicode 和 KeyWait / 长按的 Autohotkey
【发布时间】:2022-01-15 11:36:46
【问题描述】:

如果按住 s 一段时间,我想要一个将 a s 更改为 š 的热键。 “s”键不再适用于我的版本。任何想法如何解决这个问题?

s::
If (KeyWait,s,T0.3){
    If ErrorLevel
        
        Send {U+0161} 
}
return

return

我在 Win10 机器上使用 AHK 1.1.33.10。脚本以 ANSI 编码保存。

【问题讨论】:

    标签: autohotkey


    【解决方案1】:
    $s:: ; The $ prefix forces the keyboard hook to be used
        KeyWait, s, T0.3
        If ErrorLevel   
        {
            KeyWait, s  ; waits for s to be released 
            Send {U+0161}
        }
        else
            Send s
    return
    

    https://www.autohotkey.com/docs/commands/KeyWait.htm

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-10-24
      • 2017-04-11
      • 2015-09-24
      • 2012-02-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多