Posts: 34
Threads: 14
Joined: Feb 2017
Hello.
I need help. I want to search next image if first image not found in cycle. but can not to do it.
rep 999999
;G1
wait 1 S "resource:<zzzzz>image:h3513B06F" 0 0 1|16|0x400
if (???????????) goto G2
;G2
wait 1 S "resource:<zzzzz>image:h0AAB6B68" 0 0 1|16|0x400
Posts: 151
Threads: 90
Joined: Aug 2014
ilya1111 Wrote:Hello.
I need help. I want to search next image if first image not found in cycle. but can not to do it.
rep 999999
;G1
wait 1 S "resource:<zzzzz>image:h3513B06F" 0 0 1|16|0x400
if (???????????) goto G2
;G2
wait 1 S "resource:<zzzzz>image:h0AAB6B68" 0 0 1|16|0x400
Function
ttafdas
int G1 G2
rep 9
,G1 = wait(1 S "image:h0B33F70D" 0 0 1|2|0x400);err
,if G1 = 1
,,out "G1 found"
,if G1 = 0
,,out "G1 notfound"
,,G2 = wait(1 S "image:h0B33F70D" 0 0 1|2|0x400);err
,,if G2 = 1
,,,out "G2 found"
,,else if G2 = 0
,,,,out "G2 notfound"
Posts: 34
Threads: 14
Joined: Feb 2017
Thank you for the help. You helped me to understand how to write a macro better. on the monitor different pictures appear. how to make so that the macro didn't do action for old pictures which he has already recognized, and waited and did actions only for new pictures