I'm very new to this and given it my best shot but I'm a bit stuck. What i'd like is for my left mouse button to single-click normally, but if I hold it down for it to spam 12345 and stop spamming when i let go of the button.
I found this which works nicely for the 12345 spam, when it's mapped to a button.
Code: Select all
*Esc::ExitApp
q::
Loop
Loop, 5
SendInput,% A_Index
Code: Select all
f9::Suspend
LButton::
Loop
{
SetMouseDelay 20
Click
If(GetKeyState("LButton","P")=0)
Break
}
Code: Select all
f9::Suspend
LButton::
Loop
{
SetMouseDelay 20
Loop, 5
SendInput,% A_Index
If(GetKeyState("LButton","P")=0)
Break
}
Can anyone please let me know how I can fix this to work the way I want?
Thank you!