[英]How to get the hotkey definition if a shortcut is pressed?
For example, if I press Ctrl + Shift + Alt + C in this order, how I do get the corresponding hotkey definition?例如,如果我依次按Ctrl + Shift + Alt + C ,我如何获得相应的热键定义?
I expect something like the following:我期待类似以下内容:
; pseudo code
*::MsgBox %A_ThisHotkey% was pressed
I don't really get what you mean, this我真的不明白你的意思,这个^+:c:,MsgBox, % A_ThisHotkey
works just fine?工作正常吗?
Or do you mean something like this?或者你的意思是这样的?
Gui, Add, Hotkey, vHotkeyName
Gui, Add, Button, gPrintHotkey, % "Print Hotkey"
Gui, Show
return
PrintHotkey()
{
global HotkeyName
Gui, Submit, NoHide
MsgBox, % HotkeyName
}
GuiClose()
{
ExitApp
}
See thehotkey gui control .请参阅热键 gui 控件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.