Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scan Image and SetRect Problem
#1
When I try to use scan and provide a SetRect for it, I get an invalid argument. Could you guys please help me with properly making scan use SetRect? I'm confused on how to set the dimensions of the rectangle, which defines the search region. What I tried to do what locate the image in client area, then take the mouse coordinates and put them into the code. Would appreciate it, thank you.

Function doSomething
Code:
Copy      Help
int wndBS=win("Shabalabadingdong")

act wndBS

RECT a;
SetRect &a 749 749 174 174
if (scan("image:h7CB84AFB" wndBS a 16))
,out "The image was found!"
,ret
,
else out "The image was not found!"
ret
,


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)