-
Notifications
You must be signed in to change notification settings - Fork 1
Usage
Just run commands like sendinput string you want to input, which would simply input string you want to input.
Or use start /wait sendinput command to wait for sendinput to finish inputing command.
With sendinput_io introduced after release 0.3 you can execute large commands only depending on your free memory or disk space.
Warning: Non-ASCII characters cannot be parsed.
sendinput_io takes one argument specifying to read command from standard input (stdin, -) or a file.
If first argument of sendinput_io is - it would read and execute command from standard input.
(
echo ${SLEEP 3000}Some types...
echo ${SLEEP 200}${CTRL+A}
) | sendinput_io -Any other type of first argument of sendinput_io would be assumed as path to file.
sendinput_io command.txtCommand Format: ${COMMAND}, note that things inside ${} will always have to be uppercase to be recognized.
Only commands in the list of Full Simple Command List will be recognized as command, otherwise it would be recognized as Normal Input
Command Format:
-
${COMMAND Parameter1}for commands having 1 Parameter -
${COMMAND Parameter1 Parameter2}for commands having 2 Parameters
All Parameters must be pure integer with a maximum of 9 digits.
See Command with Parameters for more details.
| Command | Description |
|---|---|
| ${SLEEP 500} | Wait 500 milliseconds before parsing next command |
| ${NUMLOCK 1} | Enable Num Lock |
| ${CLICK 800 600} | Simulate a mouse click at point (800, 600) |
Command Format:
-
${KEY1+KEY2}for key combination with 2 keys -
${KEY1+KEY2+KEY3}for key combination with 3 keys
KEYx must be a single char or one of Simple Commands.
| Command | Description |
|---|---|
${CTRL+a} |
Ctrl + A |
${ALT+F4} |
Alt + F4 |
${CTRL+SHIFT+R} |
Ctrl + Shift + R |
- Non-ASCII characters cannot be parsed, and a message box of error would be shown.
- Maximum length of Simple Commands is
15and maximum digits of parameters is9 - Maximum length of one command-line is
8191forsendinputdue to limits by windows, usesendinput_iofor larger commands.