spamming 12345 on mouse click, delayed
Posted: 02 May 2024, 11:22
Hi all,
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.
I was trying this left-click autofire script:
I mashed them together and made this:
I tried upping the number on the setmousdelay, but this didn't change anything as far as I can tell. As is, it starts the 12345 spam as soon as i click, so I can't single-click on other things in the game.
Can anyone please let me know how I can fix this to work the way I want?
Thank you!
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!