Code: Select all
LButton::
funcAAA()
Send, {LButton down}
KeyWait LButton
Send, {LButton up}
funcBBB()
Return
LCtrl::
funcCCC()
Send, {LCtrl down}
KeyWait LCtrl
Send, {LCtrl up}
funcDDD()
Return
When a string is selected by dragging and the {LCtrl} key is pressed to copy the string with ^C
If the {LCtrl} key is pressed while the string is selected by dragging, the string will remain dragged while the {LCtrl} key is pressed even if the left mouse button is released.
I think this is due to the specification that when multiple key waits are performed, it waits until all of those keys are released.
How can I rewrite it so that the timing of each up is independent (immediately after the key is released)?
(Translated from Japanese to English by DeepL)