Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If image
#2
In 'Find Image' dialog uncheck 'Error if not found', and it will create 'if' code.
Code:
Copy      Help
int w=win("Quick Macros Forum • Post a reply - Mozilla Firefox" "Mozilla*WindowClass" "" 0x4)
if(scan("Macro1989.bmp" w 0 1|16))
,out "found"
else
,out "not found"

Or don't uncheck it, but use err.
Code:
Copy      Help
int w=win("Quick Macros Forum • Post a reply - Mozilla Firefox" "Mozilla*WindowClass" "" 0x4)
scan "Macro1989.bmp" w 0 1|2|16
err
,out "not found"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)