Overclock.net › Forums › Components › Keyboards › Keyboard macro/script to adjust mouse DPI?
New Posts  All Forums:Forum Nav:

Keyboard macro/script to adjust mouse DPI? - Page 2

post #11 of 13
Quote:
Originally Posted by CenterOfUniverZ View Post

ANY MOUSE SINGLE BUTTON low/high fps DPI SENSITIIVITY SWITCHER TOGGLE
Backfat
I shared ur problem once and I've lately found SOLUTION. Not that hard, and really works in most games so take u take time,
itll save u endless search on google.

Using this soft
www.gphotoshow.com/mouse-speed-switcher.php
u can allocate keyboard hotkeys to adjust windows pointer speed.
i know its not the same as low level dpi driver change but practicallyworks similar.

The point is to make two settings on that soft with different mouse speeds.
On right side u can allocate "switch settings" hotkey to swap settings that works globally within system.

Then with usage of
http://www.autohotkey.com/
script u make it so that when u hold that hotkey u get slower speed, and when u release it u get back to normal speed.
it can be made into toggle with different script of course but I just happen to use hold down thing with my floor keyboard
under my right foot and it works great, frees my fingers. obviously u can allocate it to mouse button too.
Still if anyone wants toggler I can pbly make one.


In my example I've made two settings in that soft:
MOUSE 1 as slower speed and MOUSE 2 as normal speed and "switch settings" hotkey as f7.
to trigger it ive used f6. it should work on any key or mice button however.

Then u make and launch following autohotkey script. copy script below and paste into notepad and save as .ahk extension with any name like mouse.ahk of wateva. obviously u need autohotkey installed, then launch this file.

________________________________
f6::
sendinput {f7}
loop, 1
{
KeyWait, f6
sendinput {f7}
}
return
~/::Suspend
+~/::Suspend
_________________________________

Then as u hold f6 u get slower mouse speed and when u release it u get back to normal one. I had to use that keywait cause otherwise switcher get spammed as u hold key and going crazy. u can suspend script by pressing "/". also feel free to change.

Sure u can change those keys to anything u want.
just replace both "f6" to any other key or mouse button and both "f7" to whatever u set in mousespeedswitcher "switch settings" hotkey.
Consult autohotkey hotkeys list to find proper syntax for certain keys. its all there within autohotkey help under basic usage and syntax/key list.

BTW

I also have my eyes on g700 but im happy user of ms sidewinder x8, awesome often underated gaming mice.
Not only has toggler or held down for dpi that can be mapped to any button but also quick turn feature that can be calibrated in any fp game and also mapped to most buttons on mice. vry nice. its wired/wireless. only 7 buttons though.

if something is unclear ask me on gnid69@googlemail.com, happy 2 help other tormented gamers.





Some1 actually made it easier. heres example



; GET INTIAL MOUSE SPEED:
; 0x70 (SPI_GETMOUSESPEED), third parameter is the speed (range is 1-20, 10 is default)
DllCall("SystemParametersInfo", UInt, 0x70, UInt, 0, UIntP, Mouse_Speed_Orig, UInt, 0)

Mouse_Speed_Slow := Mouse_Speed_Orig * 0.5
Mouse_Speed_Slow := Floor(Mouse_Speed_Slow)
; Or directly set the speed: Mouse_Speed_Slow =5
Return

space::
sendinput {f5}
loop, 1
{
KeyWait, space
sendinput {f5}
}
return

f5::
; 0x71 (SPI_SETMOUSESPEED), third parameter is the speed (range is 1-20, 10 is default)
DllCall("SystemParametersInfo", UInt, 0x70, UInt, 0, UIntP, Mouse_Speed_Now, UInt, 0)
If Mouse_Speed_Now =%Mouse_Speed_Orig%
DllCall("SystemParametersInfo", UInt, 0x71, UInt, 0, UInt, Mouse_Speed_Slow, UInt, 0)
Else
DllCall("SystemParametersInfo", UInt, 0x71, UInt, 0, UInt, Mouse_Speed_Orig, UInt, 0)
Return

~/::Suspend
+~/::Suspend





much easier, u dont need any other soft than autohotkey. if u want toggle then del that from script above:



space::
sendinput {f5}
loop, 1
{
KeyWait, space
sendinput {f5}
}
return
post #12 of 13
How could i set this up, so when i am in a game with the script running, i could just hit the right mouse button and it would reduce dpi / sensitivity by set amount, and when i let go it go back to normal. This way when i ads or scope, i get better control. I can still look around very easily when not zoomed in. Thanks
post #13 of 13
I'm having some trouble, but this is exactly what I've been looking for for my g700. The problem is, it's not working for me in most games. I'm just learning how to use autohotkey. I messed with some other script commands like "#usehook" at the beginning, but I don't understand how to do it right. Is there a command I can add to make it work in my games? Thanks
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Keyboards
Overclock.net › Forums › Components › Keyboards › Keyboard macro/script to adjust mouse DPI?