-1

So basically I'm trying to find how to echo "Stop" to an open Command window like command prompt for example. If you can't give the answer what specifically do I need to google to get headed in the right direction.

I have tried googling multiple different ways but my wording has to be wrong as I am only getting info how to send echo to a file.

@echo some text | Command Prompt

1 Answers1

1

This is called scripting or macros. You need to send input into a specific screen via automation (simulating a manual keyboard input). FYI, this is VERY fragile and tends to break a great deal.

This can be done by creating scripts. Example:

set shell = CreateObject("WScript.Shell")
shell.run"Sndvol"
WScript.Sleep 1500
shell.SendKeys"{TAB}"
shell.SendKeys" "
shell.SendKeys"%{F4}"

Sendkeys from command prompt

vbs SendKeys only to specific window

UnhandledExcepSean
  • 12,504
  • 2
  • 35
  • 51