How can I tell when a process is completed?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Peter

How can I tell when a process is completed?

Post by Peter » Tue Jul 15, 2003 2:59 pm

I have a macro that intitiates a process within an application. The needs to wait until the process is completed before it proceeds.

The app displays the progress in a window but the window doesn't have a title. The progress window has a checkbox that allows for the window to automatically close when the process is finished.

Lumumba

Post by Lumumba » Tue Jul 15, 2003 3:07 pm

1. check if the title is invisible: GetActiveWindow>
2. if yes, you can use it with: WaitWindowClosed>
3. if not, you can use: WaitPixelColor> to detect if something has changed on the screen e.g. a pixel reappears which was "behind" the progress window (used combined with the checkbox option).

Peter

Post by Peter » Tue Jul 15, 2003 3:30 pm

It looks like the progress window isn't a real window.

The WaitPixelColor is clever. How the macro is making selections within the app and then processing those selections. The selected portion is a different color than the unselected. I have no way of knowing if a pixel under the progress window will be selected or not, so I don't know what the color is.

Guest

Post by Guest » Tue Jul 15, 2003 3:33 pm

"How the macro is making selections" should be "However the macro is making selections"

Peter

Post by Peter » Tue Jul 15, 2003 3:47 pm

I see there is GetPixelColor function. That should work. Thanks.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts