I am trying to write a script, that when I press and hold the right mouse button, it starts spamming 2, 3, 4 and right click.
also to ignore that I am holding down shift.
i.e.: an action rpg, where you have to hold shift to stand still, and just spam the buttons mentioned above.
So far this is my code, and it spams when I right click, but the script stops when I press shift + the Rbutton. and I need it to funcion both if shift is pressed or not.
Code: Select all
~$RButton::
While GetKeyState("RButton","P"){
Send {2}
Send {3}
Send {4}
Click Right
Sleep 100 ; milliseconds
}
return
end::exitapp ;