I would like to change the input of a mouse when I click the left button and hold it. The usual left click action must remain. Let left click behave as it is, but if you click and hold, let it perform something like holding keyboard button P (or any other keyboard button).
Currently what I got is something like:
~LButton::
sleep 100
While (Getkeystate("LButton","P"))
{
Send, {M down}
}
Send, {M up}
Return
I am trying to figure out how to remove the click action when I want just to spam letter M.