#Requires AutoHotkey v2.0 ; 只在 FIGHT_N_RAGE.exe 窗口激活时有效 #HotIf WinActive("ahk_exe FIGHT_N_RAGE.exe") A:: { Send("{Down down}") ; 按下向下方向键 Sleep(50) ; 等待50毫秒 Send("{Down up}") ; 松开向下方向键 Send("{Up down}") ; 按下向上方向键 Sleep(50) ; 等待50毫秒 Send("{Up up}") ; 松开向上方向键 Send("{Z down}") ; 按下Z键 Sleep(100) ; 等待100毫秒 Send("{Z up}") ; 松开Z键 } X:: { While GetKeyState("X", "P") ; 判断是否按下 X 键 { Send("{X down}") ; 持续按下 X 键 Sleep(50) ; 每50毫秒模拟一次按下 Send("{X up}") ; 松开 X 键 Sleep(50) ; 每50毫秒模拟一次松开 } } return #HotIf ; 结束条件块 ; 按下win+ C 弹出提示 #c::MsgBox("You pressed Win-C while any window except Notepad is active.")