自动热键 |鼠标灵敏度改变脚本

AutoHotKey | Mouse sensetivity changing script

我有一个脚本可以在按住按钮时减慢鼠标移动速度:

XButton2::
DllCall("SystemParametersInfo", UInt, 0x71, UInt, 0, UInt, 3, UInt, 0)
KeyWait XButton2
return 

XButton2 up::DllCall("SystemParametersInfo", UInt, 0x71, UInt, 0, UInt, 10, UInt, 0)

^+!0::
Exit

我的问题是,当按住 shift 或 ctrl 键时,脚本将无法运行。 此外,它在游戏中不起作用。当按住其他键时,认真的人会搞砸 windows。 帮助将不胜感激

如果您希望即使按住修饰符也能触发热键,请使用 * 修饰符:

*XButton2::