Vic wrote:If you've got the latest AutoHotKey 1.1 installed the "SendInput" has been replaced by "Send, ..."
For example:
Numpad0::
Send, t/engine
Return
Actually, no.
There's a difference between SendInput and Send, check below
Suppose if you have multiple commands under one key and you need some time for each command to be typed, you can use Sleep command.
Syntax:
Sleep, (Milliseconds)
- Example:
- If you're going to frisk someone, first you'll type:
/me attempts to frisk the person
And after two seconds you want the following to be typed:
/do would you resist by any chance?
For that, use the Sleep command in the following manner:
- Numpad5::
SendInput t/me Attempts to frisk the person{Enter}
Sleep, 2000
SendInput t/do Would you by any chance resist me?
return,
So, here, first
/me Attempts to frisk the person will be typed and
two seconds later /
do Would you by any chance resist me? will be typed.
In the above example, Sleep 2000 means there will be 2 second delay.
If you want the delay to be 5 seconds, type Sleep 5000
Well, you get the idea now.
You can use Send instead of SendInput in new version 1.1
The difference will be:
If you use Send, the text will be typed manually with some delay.
If you use SendInput, the text will be typed instantly.
Updated OP.
Enjoy.