Help with image error trapping

Discuss here what does not fit to other category
Post Reply
Posts: 1
Joined: Fri Mar 03, 2017 1:08 pm

Help with image error trapping

Post by diguerd » Sun Mar 05, 2017 1:20 am

Here is my code. When it is on the Waitfor line, I pop up the image Cancel_Reason.bmp. However, I always end up running the code in the if_str part. Please help/. Also do you have a tutorial on how to use the debugger ?

<msg>(-100,-100,"Start Macro.","Message",1)<#>
<#><me_error_nodisplay><#>If not, error messagebox will be displayed
<waitfor>("IMAGE_ON_SCREEN_TOLERANT","APPEAR","C:\CIO\Macro Toolworks\Cancel WOs\Cancel_Reason.bmp",30,0)<#>
<msg>(-100,-100,"Error - No Found Image.","Message",1)<#>
<actwin>("excel",0,0,"no")<#> Activate Excel Window
<msg>(-100,-100,"Found Image.","Message",1)<#>

Posts: 106
Joined: Tue Oct 18, 2016 1:12 pm

Re: Help with image error trapping

Post by Petr » Sat Apr 29, 2017 4:39 pm

The _vErr value YES or NO is case sensitive. So you should change the "if" to:

Code: Select all


Post Reply