How do I force shift up on AutoHotKey?

Viewed 30

I want to change Ctrl + Shift + Z to Ctrl + Y so I made the below script:

^+z::^y

This script sends Ctrl + Shift + Y, which isn't quite what I want, so I changed it to:

^+z::
  KeyWait LShift
  Send ^y
  Return

It works, but it causes kind of delay because I should up LShift in order to execute Send line.
Is there any way to avoid this delay?

1 Answers

Try

^+z::
  Send {Shift up}
  Send ^y
  Return

This should programmatically release the Shift key before Sending the ^y input.

Related