具有功能而不是標籤的熱鍵
使用熱鍵功能的示例:
Hotkey, a, MyFunction ; Calls MyFunction() when a is pressed
MyFunction() {
MsgBox You pressed %A_ThisHotkey%.
}
要麼:
a::MyFunction()
MyFunction() {
MsgBox You pressed %A_ThisHotkey%.
}
使用熱鍵功能的示例:
Hotkey, a, MyFunction ; Calls MyFunction() when a is pressed
MyFunction() {
MsgBox You pressed %A_ThisHotkey%.
}
要麼:
a::MyFunction()
MyFunction() {
MsgBox You pressed %A_ThisHotkey%.
}