简体   繁体   English

使用Autohotkey将Win + Left重新映射到Home失败

[英]Remapping Win + Left to Home fails with Autohotkey

Trying to simulate the function key + arrows where for instance Fn + Left = Home . 试图模拟功能键+箭头,例如Fn + Left = Home

I want to be able to hold shift and select text so Im using the wildcard * as well. 我希望能够保持shift和选择文本,所以我也使用通配符*。

*<#Left::Home

This only works if shift is held down. 这仅适用于按住班次的情况。 Nothing happens if shift is up. 如果换班,没有任何事情发生。 What's wrong? 怎么了?

Andreas, 安德烈亚斯,

When you define a remapping like you did, the original windows shortcut stays active (don't ask me why...). 当您像您一样定义重新映射时,原始窗口快捷方式保持活动状态(不要问我为什么......)。 You could disable those pre-defined Windows hotkeys in the registry, but an easier way is to turn them into hotkeys . 您可以在注册表中禁用这些预定义的Windows热键,但更简单的方法是将它们变为热键 When using hotkeys and the send (or SendInput) command, the modifier keys are ignored (unlike in your clever remapping). 使用热键和send(或SendInput)命令时,将忽略修饰键(与您的聪明重映射不同)。 This means that you will have to "trap" every combination. 这意味着您必须“陷阱”每个组合。 Below I have shown the long (compared to your solution) version. 下面我展示了很长的(与您的解决方案相比)版本。 Sorry, but as far as I know this is the only way (or you could use an * and test for the Shift/Ctrl/Alt keys with GetKeyState, but that makes it more complex). 抱歉,但据我所知,这是唯一的方法(或者您可以使用*并使用GetKeyState测试Shift / Ctrl / Alt键,但这会使其更复杂)。

#Left::Send, {Home}
+#Left::Send, +{Home}

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

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