Hold M to spam M with randomization
Hold M to spam M with randomization
I need a code that will spam M when I hold on M, I also need randomization about 0-50ms.
Re: Hold M to spam M with randomization
Code: Select all
$m::
While GetKeyState("m", "P") {
SendInput m
Random, wait, 0, 50
If wait
Sleep, wait
}
Return
Re: Hold M to spam M with randomization
I don't think need "if wait" 😁
![I'm so happy I could shoop a rainbow! :superhappy:](./images/smilies/superhappy.gif)
I have & am using AHK to do anything in windows microsoft.
The first time, I know it in around year 2013.
Re: Hold M to spam M with randomization
Of course, that is up to you.
A delay of 0 yields the remainder of the script's current timeslice to any other processes that need it (as long as they are not significantly lower in priority than the script). Thus, a delay of 0 produces an actual delay between 0 and 20ms (or more), depending on the number of needy processes (if there are no needy processes, there will be no delay at all).
Who is online
Users browsing this forum: No registered users and 90 guests