Skip to content
myfreeer edited this page Dec 22, 2018 · 10 revisions

Normal Input

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.

Large Input

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.txt

Simple Command

Command 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 with Parameters

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.

Examples

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)

Key Combination

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.

Examples

Command Description
${CTRL+a} Ctrl + A
${ALT+F4} Alt + F4
${CTRL+SHIFT+R} Ctrl + Shift + R

Limits

  • Non-ASCII characters cannot be parsed, and a message box of error would be shown.
  • Maximum length of Simple Commands is 15 and maximum digits of parameters is 9
  • Maximum length of one command-line is 8191 for sendinput due to limits by windows, use sendinput_io for larger commands.

Clone this wiki locally