A tiny executable to send key input to any process by passing command line arguments to it. Use it to save yourself from adding refereces to System.Windows.Forms
, for example in .NET Core or .NET Standard projects.
SendKeys has no dependencies besides the .NET Framework 2.0 and can be deployed with any installer, for example.
SendKeys.exe -pid:4711 "format C:{Enter}"
SendKeys.exe -pid:4711 "format C:{Enter}" -wait:3000
As always, you'll need to add quotes to the argument string if it contains spaces (like shown in the examples). Otherwise, Windows will split it up as multiple arguments.