The Autohotkey documentation writes:
SendInput is generally the preferred method to send keystrokes and mouse clicks because of its superior speed and reliability. Under most conditions, SendInput is nearly instantaneous, even when sending long strings. Since SendInput is so fast, it is also more reliable because there is less opportunity for some other window to pop up unexpectedly and intercept the keystrokes. Reliability is further improved by the fact that anything the user types during a SendInput is postponed until afterward.
If SendInput is generally preferred, what are the use cases where sent is better in ahk? When does Sent win the Sent vs. SentInput decision?
sendis the same assendEvent. See autohotkey.com/docs/commands/SendMode.htm . Not sure if still, but some time ago, the template for new default AHK-scripts had the linesendMode, Inputin their auto-execution head section - phil294