#UseHook, On F1:: ; Your code... msgBox, Code! return +F1::Send, {F1} ;官方例子 #UseHook ; 强制从这里往后的热键使用键盘钩子。 #x::MsgBox, This hotkey will be implemented with the hook. #y::MsgBox, And this one too. #UseHook off ;这里之后钩子取消 #z::MsgBox, But not this one.
#UseHook, On F1:: ; Your code... msgBox, Code! return +F1::Send, {F1} ;官方例子 #UseHook ; 强制从这里往后的热键使用键盘钩子。 #x::MsgBox, This hotkey will be implemented with the hook. #y::MsgBox, And this one too. #UseHook off ;这里之后钩子取消 #z::MsgBox, But not this one.
之前