Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
if>no image>goto
#1
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
#2
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
Code:
Copy      Help
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"
#3
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


Forum Jump:


Users browsing this thread: 1 Guest(s)