I like Counter-Strike. In my mind, I would benefit from a higher DPI, as the mouse would pick up the input in smaller increments. Therefore I use a DPI of 4000 when I play FPS games.
Turns out a DPI that high is not that compatible with normal mouse movement outside my FPV. To make it less annoying, I used to change the Windows setting for the mouse cursor speed manually.
And this is where adaptive-M-Sync enters the party. A lightweight script that automatically changes the cursor speed, if an FPS game is open.
The Task Scheduler starts ps1HiddenStarter.vbs
on logon. As argument it passes the script to start (adaptive-M-Sync.ps1
).
This script will now change the mouse speed according to the open applications. Since a simple registry edit does not update the speed, `MouseSpeed.ps1 created by raevilman is used.
Open settings.json
and change the ProcessName and MouseSpeed values to match your application.
You can also choose a different default speed (to be used after the game is closed) and a different interval at which the script is run.
Open PowerShell and execute Set-ExecutionPolicy -Scope CurrentUser unrestricted
. This will allow the execution of unknown PowerShell scripts.
- Run
taskschd.msc
- Click "Create Task" in the "Actions" pane
- Choose a name and description
- Tick "Run only when user is logged on"
- Create a new trigger in the "Triggers" tab
- Select "At log on" as the trigger type
- Create a new action in the "Actions" tab
- Select "Start a program" as the action type
- Select
wscript
as the program - Add
"C:\path\to\your\ps1HiddenStarter.vbs" "adaptive-M-Sync.ps1"
as arguments (change path)
- Confirm everything and browse inside your "Task Scheduler Library" to find your task
- Select the task and click "Run" in the "Actions" pane to test the action
You can run a manual test by running:
wscript "C:\path\to\your\ps1HiddenStarter.vbs" "adaptive-M-Sync.ps1"
Change the mouse pointer speed in the Windows settings and wait the specified interval for it to return to the default. Note that the slider will not update until you change the page in the settings.