joe
Full Member
Posts: 46
|
Post by joe on Jun 18, 2022 21:12:57 GMT
I am trying to create a macro that looks for an image on the screen, but then if the image is not located then I would like the macro to skip to a different macro line. How do I do this?
|
|
|
Post by Steve on Jun 18, 2022 23:34:47 GMT
Hi joe You can do this with conditions ( www.turnssoft.com/conditions.html) and controlling the macro flow with the GOTO action ( www.turnssoft.com/conditions.html#gotomacroline). The %TIME_MACRO% variable is an internal variable that records the current running macro time in seconds. * | DETECT 1 | IF | DETECT IMAGE | image path D:\Macro\File\pics\face.bmp::at 90 426 177 174::match quick::move mouse no | IMAGE FOUND | GOTO MACRO LINE | FOUND 2 | IF | INTEGER VARIABLE | %TIME_MACRO% | < | 61 | GOTO MACRO LINE | DETECT * | FOUND
|
|
joe
Full Member
Posts: 46
|
Post by joe on Jun 20, 2022 19:35:11 GMT
Thank you again Steve.
|
|