Jump to content

Autohotkey Script For Dynamic Mouse Sensitivity Swap?


23 replies to this topic

#1 G4LV4TR0N

    Member

  • PipPipPipPipPipPipPip
  • The Solitary
  • The Solitary
  • 911 posts

Posted 29 November 2016 - 07:10 AM

Is there any script that works with MWO/Cryengine? Making one for windows is piece of cake, example:

Quote

; Example: This is a hotkey that temporarily reduces the mouse cursor's speed, which facilitates precise positioning.

; Hold down the ctrl key to slow down the cursor. Release it to return to original speed.



RCtrl::

SPI_GETMOUSESPEED = 0x70

SPI_SETMOUSESPEED = 0x71

; Retrieve the current speed so that it can be restored later:

DllCall("SystemParametersInfo", UInt, SPI_GETMOUSESPEED, UInt, 0, UIntP, OrigMouseSpeed, UInt, 0)

; Now set the mouse to the slower speed specified in the next-to-last parameter (the range is 1-20, 10 is default):

DllCall("SystemParametersInfo", UInt, SPI_SETMOUSESPEED, UInt, 0, UInt, 3, UInt, 0)

KeyWait RCtrl ; This prevents keyboard auto-repeat from doing the DllCall repeatedly.

return



RCtrl up::DllCall("SystemParametersInfo", UInt, 0x71, UInt, 0, UInt, OrigMouseSpeed, UInt, 0) ; Restore the original speed.


But this seems to not work while in-game. Is there any script that would work while in-game?

#2 G4LV4TR0N

    Member

  • PipPipPipPipPipPipPip
  • The Solitary
  • The Solitary
  • 911 posts

Posted 30 November 2016 - 12:33 AM

Anybody here? We have to have something to be able to aim on par with those DPI-macro guys, right?

#3 Kaeb Odellas

    Member

  • PipPipPipPipPipPipPipPipPip
  • Ace Of Spades
  • Ace Of Spades
  • 2,934 posts
  • LocationKill the meat, save the metal

Posted 30 November 2016 - 12:36 AM

Why would you need this exactly?

#4 RestosIII

    Member

  • PipPipPipPipPipPipPipPipPipPip
  • The 1 Percent
  • The 1 Percent
  • 7,322 posts
  • LocationDelios

Posted 30 November 2016 - 12:50 AM

View PostKaeb Odellas, on 30 November 2016 - 12:36 AM, said:

Why would you need this exactly?


I assume long distance firing vs close range combat. Especially if advanced zoom is involved.

#5 Kotzi

    Member

  • PipPipPipPipPipPipPipPip
  • 1,356 posts

Posted 30 November 2016 - 01:12 AM

Buy any decent mouse?

#6 G4LV4TR0N

    Member

  • PipPipPipPipPipPipPip
  • The Solitary
  • The Solitary
  • 911 posts

Posted 30 November 2016 - 06:53 AM

View PostKaeb Odellas, on 30 November 2016 - 12:36 AM, said:

Why would you need this exactly?


To be able to cope with people who use mass-macro multibutton mouses?


View PostKotzi, on 30 November 2016 - 01:12 AM, said:

Buy any decent mouse?


My mouse is top class.

Edited by G4LV4TR0N, 30 November 2016 - 06:54 AM.


#7 nehebkau

    Member

  • PipPipPipPipPipPipPipPipPip
  • 3,386 posts
  • LocationIn a water-rights dispute with a Beaver

Posted 30 November 2016 - 07:02 AM

View PostG4LV4TR0N, on 30 November 2016 - 06:53 AM, said:

My mouse is top class.


Funny,
I have a button on my mouse that dynamically changes its DPI which does the same thing.

Edited by nehebkau, 30 November 2016 - 07:03 AM.


#8 G4LV4TR0N

    Member

  • PipPipPipPipPipPipPip
  • The Solitary
  • The Solitary
  • 911 posts

Posted 30 November 2016 - 07:12 AM

View Postnehebkau, on 30 November 2016 - 07:02 AM, said:


Funny,
I have a button on my mouse that dynamically changes its DPI which does the same thing.


Sensitivity is not DPI.

#9 Almond Brown

    Member

  • PipPipPipPipPipPipPipPipPipPip
  • Philanthropist
  • Philanthropist
  • 5,851 posts

Posted 30 November 2016 - 07:21 AM

View PostG4LV4TR0N, on 30 November 2016 - 06:53 AM, said:


To be able to cope with people who use mass-macro multibutton mouses?

My mouse is top class.


But did not come with software that dynamically changes both Cursors Sensitivity and DPI rates on the fly, even in game? Rather strange that... lol ;)

#10 Kotzi

    Member

  • PipPipPipPipPipPipPipPip
  • 1,356 posts

Posted 30 November 2016 - 07:29 AM

View PostG4LV4TR0N, on 30 November 2016 - 07:12 AM, said:


Sensitivity is not DPI.

Dots per inch is per definition mouse sensitivity.

#11 nehebkau

    Member

  • PipPipPipPipPipPipPipPipPip
  • 3,386 posts
  • LocationIn a water-rights dispute with a Beaver

Posted 30 November 2016 - 07:37 AM

View PostKotzi, on 30 November 2016 - 07:29 AM, said:

Dots per inch is per definition mouse sensitivity.


Glad you said it.

#12 Kaeb Odellas

    Member

  • PipPipPipPipPipPipPipPipPip
  • Ace Of Spades
  • Ace Of Spades
  • 2,934 posts
  • LocationKill the meat, save the metal

Posted 30 November 2016 - 08:38 AM

View PostKaeb Odellas, on 30 November 2016 - 12:36 AM, said:

Why would you need this exactly?


I think my aim is pretty okay and I never change the sensitivity on my mouse mid-game.

If anything, switching it up a lot just makes it harder to build up the muscle memory for fast aiming.

#13 Chuck Jager

    Member

  • PipPipPipPipPipPipPipPipPip
  • The 1 Percent
  • The 1 Percent
  • 2,031 posts

Posted 30 November 2016 - 12:14 PM

View PostKaeb Odellas, on 30 November 2016 - 12:36 AM, said:

Why would you need this exactly?

Going to faster sensitivity really helps with twist and arm flail to spread damage, I assume this would also be combined with lock/unlock arms on some builds.

I know, I average between the two, but the advantage may be 2-5% damage spread/shot precision at best.

#14 G4LV4TR0N

    Member

  • PipPipPipPipPipPipPip
  • The Solitary
  • The Solitary
  • 911 posts

Posted 30 November 2016 - 11:04 PM

Please smartasses, you are all wrong. Read up about mouse mechanics before trying to talk. DPI is not sensitivity, thank you. DPI is not even scientific term, just marketing blob.

Quote

The computer industry often measures mouse sensitivity in terms of counts per inch (CPI), commonly expressed as dots per inch (DPI) – the number of steps the mouse will report when it moves one inch. In early mice, this specification was called pulses per inch (ppi).[28] The Mickey originally referred to one of these counts, or one resolvable step of motion. If the default mouse-tracking condition involves moving the cursor by one screen-pixel or dot on-screen per reported step, then the CPI does equate to DPI: dots of cursor motion per inch of mouse motion. The CPI or DPI as reported by manufacturers depends on how they make the mouse; the higher the CPI, the faster the cursor moves with mouse movement. However, software can adjust the mouse sensitivity, making the cursor move faster or slower than its CPI. Current software can change the speed of the cursor dynamically, taking into account the mouse's absolute speed and the movement from the last stop-point. In most software, an example being the Windows platforms, this setting is named "speed," referring to "cursor precision". However, some operating systems name this setting "acceleration", the typical Apple OS designation. This term is incorrect. Mouse acceleration in most mouse software refers to the change in speed of the cursor over time while the mouse movement is constant.

Edited by G4LV4TR0N, 30 November 2016 - 11:06 PM.


#15 G4LV4TR0N

    Member

  • PipPipPipPipPipPipPip
  • The Solitary
  • The Solitary
  • 911 posts

Posted 02 December 2016 - 06:49 AM

So back to original post, does anyone have such script that would work with MWO/Cryengine?

#16 Lostdragon

    Member

  • PipPipPipPipPipPipPipPipPip
  • Ace Of Spades
  • Ace Of Spades
  • 2,713 posts
  • LocationAlabama

Posted 02 December 2016 - 07:00 AM

View PostG4LV4TR0N, on 30 November 2016 - 11:04 PM, said:

Please smartasses, you are all wrong. Read up about mouse mechanics before trying to talk. DPI is not sensitivity, thank you. DPI is not even scientific term, just marketing blob.



/facepalm

So much fail.

#17 Ghogiel

    Member

  • PipPipPipPipPipPipPipPipPipPip
  • CS 2021 Gold Champ
  • CS 2021 Gold Champ
  • 6,852 posts

Posted 02 December 2016 - 07:20 AM

I assume you bolded part that says "However, software can adjust the mouse sensitivity, making the cursor move faster or slower than its CPI."

Unless you had a potato mouse, why would you want software other than your top of the line mouses software or the actual DPI switch on the mouse to do it and want to use ahk of all things to do this.

#18 MrJeffers

    Member

  • PipPipPipPipPipPipPip
  • 796 posts
  • LocationThe Rock

Posted 02 December 2016 - 07:39 AM

View PostG4LV4TR0N, on 30 November 2016 - 11:04 PM, said:

Please smartasses, you are all wrong. Read up about mouse mechanics before trying to talk. DPI is not sensitivity, thank you. DPI is not even scientific term, just marketing blob.


Do you not realize that your quote proves exactly what all the "smartasses" were saying? Mouse sensitivity is an artificial multiplier of the actual DPI, which is an actual measurement for the resolution of the sensor of Dots Per Inch not just marketing blob. It's used to change the effective DPI of the mouse and mainly was created as a positive increase due to the lack of precision on early mice (low DPI). It is completely unnecessary on a good high DPI mouse with adjustable DPI, and in fact is worse because it eliminates the actual precision of high DPI mice.

View PostG4LV4TR0N, on 02 December 2016 - 06:49 AM, said:

So back to original post, does anyone have such script that would work with MWO/Cryengine?


Lets looks at how this works - 400 DPI mouse setting and mouse sensitivity boost of 1:
DPI 400, CPI 400
At sensitivity 4
DPI 400 CPI 1600 but for every one pixel the mouse registers it moves 4 - it fabricates 3 extra pixels. Want to move 58 pixels? Too bad, it's 56 or 60 for you.
But look what works the same, only better:
sensitivity of 1
DPI 1600, CPI 1600 - difference being that it's not fabricating the extra pixels. Wanna move 58 pixels, no problem

The software "sniper" mode you are asking for does the exact opposite - they are a fractional multiplier on the sensitivity to reduce the effective DPI. Which can be done by just having your lowest mouse DPI setting at 200, 400 or whatever you need.
At sensitivity .25
DPI 1600, CPI 400.
Or you could just set your mouse at:
DPI 400, CPI 400

CN: if you have an adjustable mouse turn sensitivity boost to zero and set your DPI in your mouse to the actual values you want/need. There is zero need for sensitivity when your mouse can adjust on the fly.

Edited by MrJeffers, 02 December 2016 - 09:29 AM.


#19 Mystere

    Member

  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Bad Company
  • Bad Company
  • 22,783 posts
  • LocationClassified

Posted 02 December 2016 - 07:47 AM

Hey folks! Switch to trackballs. They're better at this and take much less desk space and hand movement. Posted Image

Edited by Mystere, 02 December 2016 - 07:49 AM.


#20 Lostdragon

    Member

  • PipPipPipPipPipPipPipPipPip
  • Ace Of Spades
  • Ace Of Spades
  • 2,713 posts
  • LocationAlabama

Posted 02 December 2016 - 08:13 AM

View PostMystere, on 02 December 2016 - 07:47 AM, said:

Hey folks! Switch to trackballs. They're better at this and take much less desk space and hand movement. Posted Image


Someone make a trackball underhive meme, stat!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users