【问题标题】:Remap `AltGr & someKey`重新映射`AltGr & someKey`
【发布时间】:2021-03-11 08:49:23
【问题描述】:

我如何重新映射,例如AltGr + i?

我知道如何重新映射其他组合,例如 alt + i (!i::Send, test) 或 shift + i (+i::Send, test)。但这不适用于AltGr

我知道如何映射 AltGr 隔离:LControl & RAlt::Send, test 有效。但是LControl & RAlt & i::Send, test 不起作用。

那么,我该怎么做呢?

编辑:已解决 This solution worked

【问题讨论】:

    标签: autohotkey


    【解决方案1】:

    来自 OP 链接的帖子:

    使用上下文相关的#IF 语句来检查 AltGr 是否被按住,然后创建一个标准的一键热键。

    @user3419297的例子:

    LControl & RAlt:: AltGr := true ; assign the boolean value "true" to the variable 'AltGr''
    LControl & RAlt Up:: AltGr := false
    
    ; The #If directive creates context-sensitive hotkeys and hotstrings
    #If (AltGr) ; If this variable has the value "true" 
    
        a:: MsgBox AltGr+a
        a & b:: MsgBox AltGr+a+b
        b & a:: MsgBox AltGr+b+a
    
        h & l:: Send Hello
    
        i & e:: Run iexplore.exe
        n & p:: Run notepad
        w & p:: Run wordpad 
    
    #If ; turn off context sensitivity
    

    所以对于 OP 的具体问题:

    #If (AltGr)
       i::Send, test
    #If
    

    更多信息:Context Sensative #IF statements

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-05-05
      • 1970-01-01
      • 1970-01-01
      • 2010-09-18
      • 2021-09-04
      • 2013-01-15
      • 1970-01-01
      • 2012-08-09
      相关资源
      最近更新 更多