AutoHotKey无法识别AltGr + Alt + Y [英] AutoHotKey does not recognize AltGr+Alt+Y

查看:42
本文介绍了AutoHotKey无法识别AltGr + Alt + Y的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大多数键与AltGr + Alt + [key]结合使用.我发现无法正常工作的异常是y和.(时期).我正在按照此说明进行操作( https://www.autohotkey.com/docs/KeyList.htm#SpecialKeys 步骤1至5),以便分析问题.

Most of the keys work in combination with AltGr+Alt+[key]. The not working exceptions I found are y and . (period). I am following this instruction (https://www.autohotkey.com/docs/KeyList.htm#SpecialKeys Step 1 to 5) in order to analyze the problem.

AltGr + Alt + x的日志输出(我的AHK脚本正在使用该快捷方式)

Log output for AltGr+Alt+x (my AHK script is working with that shortcut)

A2  01D     d   11.34   LControl
A5  138     d   0.00    RAlt            
A4  038     d   0.13    LAlt            
58  02D     d   0.20    x               
58  02D     u   0.13    x               
A2  01D     u   0.17    LControl        
A5  138     u   0.00    RAlt            
A4  038     u   0.00    LAlt 

AltGr + Alt + y的日志输出(我的AHK脚本不适用于该快捷方式)

Log output for AltGr+Alt+y (my AHK script is NOT working with that short cut)

A2  01D     d   1.89    LControl        
A5  138     d   0.00    RAlt            
A4  038     d   0.05    LAlt            
A2  01D     u   0.36    LControl        
A5  138     u   0.00    RAlt            
A4  038     u   0.06    LAlt 

此日志输出使我相信,问题不在于我的脚本,而是更全局的问题.看来AHK甚至都没有收到"y"的按键.

This log output leads me to believe, that the problem is not my script, but something more global. It seems that AHK is not even receiving the key stroke for "y".

AltGr + y的日志输出可证明我的键盘没有缺陷:)

Log output for AltGr+y to prove that my keyboard isn't defective :)

A2  01D     d   10.27   LControl
A5  138     d   0.00    RAlt            
59  02C     d   0.23    y               
59  02C     u   0.13    y               
A2  01D     u   0.17    LControl        
A5  138     u   0.00    RAlt 

你们中的任何一个都可以复制吗?如何使用AltGr + Alt + Y作为快捷方式?我正在使用Win10 x64和AHK版本1.1.30.01.

Can any of you reproduce this? How can I use AltGr+Alt+Y as a shortcut? I am using Win10 x64 and AHK Version 1.1.30.01.

修改

很明显,问题仅在我的计算机上.因此,我想将问题稍微更改为:我如何识别并消除阻止某些热键的原因?请记住,AltGr + Alt + Y并不是唯一一个无效的热键,也是AltGr+ Alt +.和AltGr + Alt + O,还有可能还有更多我还没有测试过的东西.

Obviously, the issue is only on my computer. So I would like to change the question slightly into: How can I identify and eliminate the reason that blocks some hotkeys? Remember that AltGr+Alt+Y is not the only hotkey that does not work, also AltGr+Alt+. and AltGr+Alt+O and possibly more that I have not tested yet.

推荐答案

代替AltGr + LAlt + Key或AltGr + RControl + Key可能会导致某些程序出现问题或键卡住的情况,您可以使用任何其他键代替LAlt或RControl这样:

Instead of AltGr+LAlt+Key or AltGr+RControl+Key which may cause issues in some programs or key jamming, you can use any other key in place of LAlt or RControl this way:

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

https://autohotkey.com/docs/commands/_If.htm

这篇关于AutoHotKey无法识别AltGr + Alt + Y的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆