WaitScreenImage

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
aarona
Newbie
Posts: 6
Joined: Mon Apr 15, 2013 10:20 am

WaitScreenImage

Post by aarona » Fri Apr 19, 2013 11:23 am

Hi All,

I am having trouble with WaitScreenImage all of a sudden.

Without any changes to anything, it is not working properly for me.

Basically, I had a line WaitScreenImage>%BMP_DIR%\filename.bmp,0.7,CCOEFF

it was working fine, then all of a sudden, it just stopped working. What happens is, If the file is actually on the screen, it will run as expected, however the I added a "messageModal>%WSI_RESULT% %WSI_TIMEOUT% WSI_TIMEDOUT%" line immediately after, the results were "-1 120 FALSE"
Not sure what -1 means.

If the file is NOT on the screen, it will go to the next line as and the results for the messagemodal added are exactly the same.

Please help shed some light on this, as I am totally confused.
I also have this line located within a SRT.

THanks!

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

Post by Marcus Tettmar » Fri Apr 19, 2013 1:00 pm

-1 usually means the needle image file doesn't exist.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

aarona
Newbie
Posts: 6
Joined: Mon Apr 15, 2013 10:20 am

Post by aarona » Fri Apr 19, 2013 4:07 pm

That would mean "%BMP_DIR%\filename.bmp" does not exist?

Whilst I was debugging, I thought this could have been true,

So I made another line "ExecuteFile>%BMP_DIR%\filename.bmp" and there were no errors.

aarona
Newbie
Posts: 6
Joined: Mon Apr 15, 2013 10:20 am

Post by aarona » Sat Apr 20, 2013 2:54 am

update and kind of new problem: I had an error "unable to find ircv.dll" on one of my waitscreenimage lines . after pressing ABORT, I ran the exact script again, after that ALL waitscreenimage lines were NOT working properly. the variables for WSI_RESULT WSI_TIMEDOUT were ALWAYS "1" and "FALSE" as oppose to "-1 and FALSE"

I have restarted Macro Scheduler but the problem persists. I am going to restart my computer to see if things work

User avatar
Meryl
Staff
Posts: 124
Joined: Wed Sep 19, 2012 1:53 pm
Location: Texas
Contact:

Post by Meryl » Tue Apr 23, 2013 4:40 pm

Did it work?

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

Post by Marcus Tettmar » Tue Apr 23, 2013 6:09 pm

Which version are you using? Please make sure you have the very latest build - 14.0.7. Download from your registered user area.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

aarona
Newbie
Posts: 6
Joined: Mon Apr 15, 2013 10:20 am

Post by aarona » Thu Apr 25, 2013 2:55 pm

Hi

Sorry, I dont check this forum often. I come on only when I have problems or issues.

I have the latest build for macro scheduler.

I was unable to figure out why it was not working but to fix it, I just restart my computer and it will work as expected.

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