Question about in game mouse sensitivity script support Topic is solved

Ask gaming related questions
Atisab
Posts: 5
Joined: 28 Feb 2024, 17:20

Question about in game mouse sensitivity script support

07 Mar 2024, 14:10

Hi, i have tried this mouse sensitivity script in the game and it has no reaction in the game. If i hold down the X button, the mouse crosshair should be slower in the game. Is there a solution to this ?

Code: Select all

x::MouseSpeedToggleHold(1) ; change the speed here

MouseSpeedToggleHold(newSpeed) {
    static GetMouseSpeed := 0x70
    static SetMouseSpeed := 0x71
    DllCall("SystemParametersInfo", "UInt", GetMouseSpeed, "UInt", 0, "UIntP", &originalSpeed:=0, "UInt", 0) ; Get the original speed
    DllCall("SystemParametersInfo", "UInt", SetMouseSpeed, "UInt", 0, "UInt", newSpeed, "UInt", 0)           ; set the new speed
    KeyWait RegExReplace(A_ThisHotkey, "^.*(\w+)$", "$1")                                                    ; wait for this hotkey
    DllCall("SystemParametersInfo", "UInt", SetMouseSpeed, "UInt", 0, "UInt", originalSpeed, "UInt", 0)      ; restore the speed
}
Last edited by joedf on 07 Mar 2024, 14:28, edited 1 time in total.
Reason: fix [code] tags
User avatar
Noitalommi_2
Posts: 286
Joined: 16 Aug 2023, 10:58

Re: Question about in game mouse sensitivity script support  Topic is solved

07 Mar 2024, 15:55

Hi.

This sets the cursor speed and if a game does not use the cursor as input then this setting has no effect.
First-person-shooters typically use raw input when it comes to camera movement, which ignores Windows settings regarding mouse speed and acceleration.

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 9 guests