Code: Select all
XButton2::
loop
{
Send, {right}
sleep 36
GetKeyState, state, XButton2, P
if state = u
break
}
return
Recently I got a new mouse. Specifically, the Logitech M510, and I can't for the life of me get this code to work. The script IS activating as confirmed by looking at the log as well as the simple fact that hitting Xbutton2 results in the program recieving a {right} key press. The problem is that it will not spam (right word?) - that is, it will only send the {right} key press once, and will not repeatedly send it as I hold XButton2 down.
I have confirmed that the script still works with my old mouse.
I am running the "logitech options" supporting software for the mouse (allows for custom configuration of the various mouse buttons). I have tried setting the Xbuttons within the logitech options program to different keys and then triggering the hotkey within AHK off of that key (hope that makes sense...). Currently within the Logi Options software the Xbuttons are set to their default of "forward" and "back". The Xbuttons on the new mouse function just as they did on the old mouse in all other programs i.e. as forward and back buttons.
Any help is greatly appreciated.
Thanks!