How can I detect when a Command Prompt window has returned to idle with prompt for the next command please?
 
	For example, after a large paste:
 
	                        ControlClick("[CLASS:ConsoleWindowClass]", "", "", "right") 
	                        ControlSend("[CLASS:ConsoleWindowClass]", "", "", "p") 
 
	a large paste may be something like copying some large files which may go on for some time after the paste command has been given.