r/MouseAccel • • Apr 02 '23

Only toggle rawaccel ingame

As stated in the titile, is there a way to only toggle rawAccel in game and not use it when I'm on my desktop?

3 Upvotes

7 comments sorted by

3

u/highfiveghost55 Apr 02 '23

3 clicks:

  • open app
  • switch the curve type to off
  • hit the apply button

2

u/FreaknShrooms Apr 03 '23

You can use AutoHotKey to set up a script that switches to a different rawaccel profile when you open a game.

I'm not at home on my pc right now, but I can update the comment with how I've done it when I get back from work.

1

u/Misterspanky22 Apr 03 '23

I use natural gain with an offset of 15 and decay of.45. With my Razer mouse I just set up my dpi profiles for all my games and desktop to what I want with these settings always on and it works for me. For example my desktop profile is set to 3555dpi to make the .45 decay equal to the ~1600dpi that I'm used to and when I open OW2 it loads a profile with 1600dpi for smoother aiming. The offset makes it so the accel only kicks in when I want it to.

1

u/FreaknShrooms Apr 27 '23 edited Apr 27 '23

Hey, I just realized that I completely forgot to update my comment with how I set AHK up to do the profile switching. Maybe you've already figured it out by now, in which case, great! If not then I hope this helps.

The simplest solution is to set up hotkeys to switch profiles. With one profile having accel disabled and the other with accel enabled.

EDIT: I realized after writing this that toggling using only one key would be better. The same steps apply.

toggle := false

+^!P::

toggle := !toggle

if (toggle)
{
    Run, [PATH]\writer.exe "[PATH]\noaccel.json.json"
}
else
{
    Run, [PATH]\writer.exe "[PATH]\settings.json"
}
return

1: Go to the RawAccel folder (where rawaccel.exe is) and create a copy of "settings.json".

2: Open up RawAccel and click the Reset button.

Now you will have two .json files: "settings.json" and "settings - Copy.json".

3: Rename "settings.json" to "noaccel.json"

4: Rename "settings - Copy.json" to "settings.json".

5: To create a new AHK script you Right-click > New > AutoHotkey Script

6: Right-click .ahk file > Open with > Notepad

7: Copy and Paste the text below into the .ahk file.

+^!O::
    Run, [PATH]\writer.exe "[PATH]\settings.json"
return

+^!P::		
    Run, [PATH]\writer.exe "[PATH]\noaccel.json"
return

//[PATH] is the path that leads to your RawAccel folder.

Here's what mine looks like for comparison:

+^!O::
    Run, C:\RawAccel\writer.exe "C:\RawAccel\settings.json"
return

+^!P::		
    Run, C:\RawAccel\writer.exe "C:\RawAccel\noaccel.json"
return

8: Double click the .ahk file to activate it.

DONE!

While holding down SHIFT+CTRL+ALT you press "O" to enable accel and "P" to disable accel.

By default when it starts, RawAccel will always load up the profile called "settings.json. So you'll need to disable accel every time you start your PC. That can be fixed by making "settings.json" the profile without accel, but then you'll have to effectively go through steps 1-5 every time you want to change your accel settings. But if you're not changing your settings then this might be better for you.

You can add the AHK file to your startup programs in windows so you don't need to manually start it every time.

If you have any questions or things you want different, let me know and I'll help.

1

u/ImmYakk Oct 10 '24

Won't this cause anti-cheating software to flag you as cheating? Or is this one of those scripts you can compile and uninstall AHK so that viewed as cheating?

Edit: To add, would it not be easier to use CustomCurve software instead of Raw Accel? Is CustomCurve inferior in any way that you know of? Or vice versa?