Programming with Reflection
WaitForPrinterString method
Syntax object.WaitForPrinterString StatusString, Timeout
Begins a wait that is satisfied when the specified string is sent to the printer. The procedure stops until the wait is satisfied or expires.
StatusString Argument type: String
Specifies the string that will terminate the wait. Matches are case-sensitive. This statement waits for an event that occurs when the string "How are you?" is sent to the printer with a three minute timeout.
.WaitForPrinterString "How are you?", "00:03:00"
Timeout Argument type: String
Specifies an interval of time in HH:MM:SS format. If this interval elapses before the specified event occurs, an error occurs.