简体   繁体   English

AutoHotkey:仅使用Alt和Window触发热键

[英]AutoHotkey: trigger hotkey just with Alt and Window

I want a hotkey to trigger when I press only ALT+WIN, and then release. 当我仅按ALT + WIN并释放时,我希望触发一个热键。 So if I use those keys to modify a different hotkey (for example, !#A ), I do NOT want it to trigger. 因此,如果我使用这些键修改其他热键(例如!#A ),则不希望它触发。 Only if I press !# then release without another keypress. 仅当我按!#才释放而无需再次按键。

I tried !# UP::DoMyThing() , but that didn't work. 我尝试了!# UP::DoMyThing() ,但是没有用。

Is this possible? 这可能吗?

Unlike Control/Alt/Shift, there is no generic/neutral "Win" key because the OS does not support it. 与Control / Alt / Shift不同,没有通用/中性的“ Win”键,因为操作系统不支持它。 (See Modifier_keys ) (请参见Modifier_keys

Furthermore "#" is the modifier symbol for the windows key. 此外,“#”是Windows键的修饰符符号。 Modifier symbols are used only in key-combinations in order to modify other keys. 修饰符符号仅在键组合中使用,以便修改其他键。

Try also 也尝试一下

 !LWin UP::DoMyThing()

or 要么

 !RWin UP::DoMyThing()

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

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