Jump to content

Help with writing a script for changing mouse settings

PowerPCFan

I love "Enhance mouse pointer precision" for everyday tasks in Windows 11. However, I feel it impacts my in-game DPI, sensitivity, and aim in video games. Can someone help me write an AutoHotKey or VBS script to automate toggling this setting on and off? 

 

For example - I use this to change the audio output from my headphones to speakers and vice versa. 

; Toggles default audio device in Control Panel (switches between headset and speakers).
Numpad4::
  toggle:=!toggle ;toggles up and down states.
  Run, mmsys.cpl
WinWait,Sound
if toggle
  ControlSend,SysListView321,{Down 9}
Else
  ControlSend,SysListView321,{Down 13}
ControlClick,&Set Default
ControlClick,OK
return

Can someone write a similar script for my mouse settings?

 

And EVEN BETTER, make it so Pointer Precision turns off when I open Fortnite, and when Fortnite is closed, it turns back on.

(If it helps, my game location is C:\Program Files\Epic Games\Fortnite\FortniteGame\Binaries\Win64\FortniteClient-Win64-Shipping.exe)

 

 

 

Here's a screen shot of the control panel. 

image.png.3a34c4aa73378a7a716385e8dd35030f.png

 

I love making PCPartPicker lists.

If I answer your question (or someone else), please mark it as the answer. 

Please refresh before replying, I like to edit my posts.

 

PC SPECS: Intel i5-12600K, RX 6700 XT, 32GB DDR4 RAM

Favorite cheap but great tech: AMD RX 6700 XT, Yunzii YZ75 Keyboard, Acer Nitro XV272U Vbmiiprx

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×