解决按键冲突
2025-3-28 乱云飞
#NoEnv
#Persistent
#SingleInstance Force
#InstallKeybdHook
#UseHook
; --- 全局状态 ---
U_IsPressed := false
Zero_IsSent := false ; 标记是否已处理0键
; --- 检测U键按下 ---
~*U::
U_IsPressed := true
SetTimer, CheckU0Combo, -100 ; 100ms检测窗口
return
; --- 检测U键释放 ---
~*U up::
U_IsPressed := false
return
; --- 检测U+0组合 ---
CheckU0Combo:
if (U_IsPressed && GetKeyState("0", "P")) {
Run, calc.exe ; 触发计算器
;Zero_IsSent := true ; 标记0键已处理
}
return
本文链接:http://80c.cc/ez/831.html
发表评论: