简体   繁体   English

AutoHotkey Right Alt + Shift 不起作用

[英]AutoHotkey Right Alt + Shift doesn't work

I have made an Autohotkey script that presses left when pressed RightAlt + j and the other arrow keys in a similar way, similar to how you can move with HJKL in vim, except that everything is shifted one key to the right and you have to press RightAlt (I'm using the US qwerty keyboard scheme, hence I have no AltGr) because I got annoyed of reaching out to the bottom right of the keyboard for the arrow keys.我制作了一个 Autohotkey 脚本,当按下 RightAlt + j 和其他箭头键时以类似的方式按下左键,类似于在 vim 中使用 HJKL 移动的方式,除了所有内容都向右移动一个键并且您必须按下RightAlt(我使用的是美国 qwerty 键盘方案,因此我没有 AltGr)因为我对伸到键盘右下角的箭头键感到恼火。

So, this works, I can press RightAlt + j to move right and k, l and;所以,这行得通,我可以按 RightAlt + j 向右移动和 k,l 和; for the other arrow keys.对于其他箭头键。 However, I want to support Shift + RightAlt + j, so that I can easily select text with those keybindings.但是,我想支持 Shift + RightAlt + j,这样我就可以使用这些键绑定轻松地 select 文本。 That's why I made this:这就是我做这个的原因:

>!+j::Send {+Left}

However, when I try to do this, it simply does nothing.但是,当我尝试这样做时,它根本什么都不做。 It does't send j, it doesn't send left, it just does nothing.它不发送 j,它不发送 left,它什么也不做。 What's wrong with this and how can I fix it?这有什么问题,我该如何解决?

You just put the shift modifier ( + ) inside the brackets, when it should be outside.您只需将移位修饰符 ( + ) 放在括号内,而它应该在括号外。 This code should work.这段代码应该可以工作。

>!+j::Send +{Left}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM