forum

Mouse Sensitivity Toggler

posted
Total Posts
1
Topic Starter
Juan_KW
Since osu doesn't have this feature, i make my own Using "AutoHotKey" script. to help people who doesn't have dpi switch mouse (me)

The idea is to toggle between normal and high sensitivity so that when you play you can toggle to high sensitivity and when not playing (in lobby) you can toggle back to normal sensitivity so it is easier to navigate the cursor

How to use:
1. install "AutoHotKey" Size:3MB https://www.autohotkey.com/
2. select "unicode" when asked during installation
3. after install done, open this file to use https://drive.google.com/file/d/1CU6apIkBSLN0t-RzPhCQtwfT8l8dKvN-/view?usp=sharing
4. to close it just right click the autohotkey app at bottom right corner then press exit or you can press pausebreak

Edit: I just learn about compile, so instead of installing AutoHotKey you can just open this exe, but you cannot edit the key or sensitivity, if you want to edit then install AutoHotKey

Mouse Sensitivity Toggler.exe: https://drive.google.com/file/d/1-8m4PPtWfIfujP_fWElo3IwscLIObfdx/view?usp=sharing

Note:
-This is using windows mouse setting, not osu setting (i don't know how to script it), so turn off the "raw input" in osu setting
-key binding (you can edit it in notepad): press middle mouse button to toggle, press pausebreak to close the script.
-you can also adjust the sensitivity

This is my first time playing with script and maybe definitely there is a mistake / inefficiency in the script so if anyone can improve it then please do ^^. example: using osu setting instead of using windows mouse setting. but anyways, i am happy with this script for now...

reason this post:
- community/forums/topics/1249730?start=7922741
- community/forums/topics/1250184?start=7923626

osu! version: Stable 20210208.2 (latest)



script content (for advanced user):

SPI_GETMOUSESPEED = 0x70
SPI_SETMOUSESPEED = 0x71
DllCall("SystemParametersInfo", UInt, SPI_GETMOUSESPEED, UInt, 0, UIntP, OrigMouseSpeed, UInt, 0)
MButton:: ; here is the place if you want to change (i use Mbutton/middle mouse button)
Toggle := !Toggle
If Toggle
DllCall("SystemParametersInfo", UInt, SPI_SETMOUSESPEED, UInt, 0, UInt, 16, UInt, 0) ; you can setting the sensitivity from 1-20 (16 my setting)
else
DllCall("SystemParametersInfo", UInt, SPI_SETMOUSESPEED, UInt, 0, UInt, OrigMouseSpeed, UInt, 0)
return
Pause::ExitApp ; to exit app
Please sign in to reply.

New reply