1
votes

I need that LButton (when up) to release Insert (down and up) key. But it can't release while LButton is down, cuz in the game that I play, one action cancels the other. I made a script that almost do that, but when I do that fast, one action begins to cancel the other, like LButton (down) was being pressed at the same time that Insert are.

Actual script:

LButton up::

Send {Ins up}

Return

1

1 Answers

0
votes

Here are some things you could try:

Add SetBatchlines -1 to the beginning of your script, to make it run faster.
Use SendInput instead of Send. Because it is faster.
Send and {LButton Up} command right before the {Ins up}.
Wait for the LButton key to be released using KeyWait.

SetBatchLines -1
LButton up::
    KeyWait, LButton
    SendInput, {LButton Up}{Ins up}
Return