q::;send characters to the command promptWinGet, hWnd,ID,ahk_class ConsoleWindowClassControlGetFocus, vCtlClassNN, %"ahk_id "hWndControlGet, hCtl,Hwnd,, % vCtlClassNN, %"ahk_id "hWndifhCtl hWnd := hCtl vTarget ="C:\Windows\System32\notepad.exe" "%A_ScriptFullPath%"Loop,Parse, vTar...