So I have this simple script that spams Middle mouse button with random speed while holding it and I noticed a weird behavior: sometimes when I'm holding middle button and also pressing and releasing Right click, then releasing Middle button, it gets stuck spamming until I press and release middle button again.
This is a while loop but I also tried with regular loop and noticed the same behavior, I tried to mess with SetBatchLines and sendmode values but sadly didnt fix it. This issue only happens when interacting with Right click. I'm clueless...
Code: Select all
MButton::
SetTimer, pingspam, -200
return
pingspam:
Random, SleepAmount, 10, 150
While GetKeyState("MButton","P") {
Send, {MButton}
Sleep, %SleepAmount%
}
return