a Auto Hotkey script to type into a command prompt code example

Example: a Auto Hotkey script to type into a command prompt

{
*$F1::
ConsoleSend("Hello World")
Sleep, 200
ConsoleSend("`r", "ahk_class ConsoleWindowClass")
Sleep, 1000
ConsoleSend("Random Text", "ahk_class ConsoleWindowClass")
Sleep, 200
ConsoleSend("`r", "ahk_class ConsoleWindowClass")
Sleep, 15000
ConsoleSend("More Random Text", "ahk_class ConsoleWindowClass")
Sleep, 200
ConsoleSend("`r", "ahk_class ConsoleWindowClass")
Sleep, 1000
SetKeyDelay 30,50
Send, {ALT DOWN}{TAB}{ALT UP}
Return