JSI Tip 7956. LaunchKey is a freeware command-line utility that runs an application and sends keypresses to it.

Download LaunchKey.zip, and unzip the files to a folder in your path.

The syntax for using LaunchKey is:

Launchkey "KEYS TO SEND" "APPLICATION TO RUN" \["APPLICATION PARAMETERS"\]

as in:

Launchkey "Here is some text." Notepad

"You can send all the normal key character keys as well as special keys like ALT, CTRL, F1-F12 etc. Details on how to send key presses is contained in the accompanying Helpfile."



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish