Overclock.net › Forums › Components › Keyboards › "precicion mode" for g700
New Posts  All Forums:Forum Nav:

"precicion mode" for g700

post #1 of 2
Thread Starter 
I found this script here to add a button to lower dpi and slow the mouse speed only while the button is pressed like my old r.a.t. 5 mouse. I'm using a logitech g700 mouse and I assigned a hotkey to one of my mouse buttons to enable this feature. The problem is, it doesn't seem to work in most games. I tried several and only one of the games worked. It works perfectly outside of games, but as soon as I'm using the mouse in-game, it no longer functions.
I'm just learning how to use "Autohotkey," so there is probably some kind of command to make it work. I looked it up but couldn't figure out how to get it to work. I hope somebody can help me with this. It comes in really handy to be able to slow down the mouse on the fly as opposed to having buttons that only toggle the speed. Thanks


; 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

Insert::
sendinput {f5}
loop, 1
{
KeyWait, Insert
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
post #2 of 2
Thread Starter 
Mods, you can delete this. I meant to post this in the mouse section
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Keyboards
Overclock.net › Forums › Components › Keyboards › "precicion mode" for g700