Hi scamper_22,
You only provided a limited amout of info to answer your question.
Can you post you AHK code?
what is the name of the console program?
Is it the only program AHk interacts with?
That said, whenever you run a script, if you right-click on the AHK Icon
in the system tray, you'll see the name of program called "Window Spy".
If you Mouseover the console window it may give you info about the window.
Also a program called "Winspector" will display all event messages when you interact with the console window.
If you go to the 1st page of ASK for HELP, at the top of the page are links to help you get more info. "Tutorial for Newbies"
You can also do a search on "Comspec" & Console, there are quite a number of scripts and help in interacting with "Console" windows.
You can also add "Msgbox' commands after the code line to see what is sent to the window.
Good Luck.

_________________
"Man's quest for knowledge is an expanding series whose limit is infinity"