WaitScreenImage

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
akto
Newbie
Posts: 1
Joined: Fri Feb 27, 2015 8:50 pm

WaitScreenImage

Post by akto » Fri Feb 27, 2015 8:58 pm

Dear foroum members,

I am very new to this program. I have prebuild several steps to be executed in our custom made application. I was able to run a report and want to measure the time from hitting the run button till the report pops in the desktop.

I made a screenshot of the output of the report and used:

Here I have the code to run the reports and then I want to measure the time right after run button was hit ... till the image pops up on the screen

DateStamp>C:\Users\1\Desktop\start.txt,

WaitScreenImage>C:\New folder\Search3.PNG,0,CCOEFF

DateStamp>C:\Users\1\Desktop\end.txt,

It seems like this is not working, as no matter how long the report takes to run I always get 0.8sec..

I also tried with FindImagePos but no luck.

Do I need to create a loop and then periodically to check for the existence of the picture.

Any help will be appreciated.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: WaitScreenImage

Post by Marcus Tettmar » Mon Mar 02, 2015 11:05 am

You must be getting a false positive on the match. Without seeing your needle/haystack I can't say why but this must be the explanation. You may need to use the EXACT match option.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

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