The Print command from the Notepad menu doesn\'t get executed
User sei roy (seiroy@IAAI.com.nospam) posted:
I am not sure if this is your problem, but IF you want to delay for 5
seconds, you need to change your command to:
i.e. the time is in milliseconds. Your command DelayFor 5 = .005 seconds
Re: The Print command from the Notepad menu doesn\'t get executed
User (firstname.lastname@example.org) posted:
And if the time required to print a job varies significantly, you could
replace the DelayFor with a loop that calls the "GetForegroundWindow"
Windows API function until it notepad once again becomes the top window
again (haven't verified that this would work).
For testing reports rendered in the Crystal Reports Viewer, I wait for the
CR Viewer window caption to change (for reports where 2 report windows are
opened), then wait for the CR Viewer toolbar to become enabled again.