Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Limit area of interest?
#1
Any way to tell the macro to limit area of interest for image recognition to x,y pixels relative to curent mouse position? (like in the photo atached)
And ofcourse when done to unlimit it.

Ps: I know atachment is retarded but it's just to ilustrate what i need it to do Smile


Attached Files Image(s)
   
#2
Macro Macro1656
Code:
Copy      Help
RECT r
GetCursorPos +&r
r.right=r.left+32 ;;width 32
r.bottom=r.top+32 ;;height 32
scan "file" 0 r
#3
Great result with the code you gave me! i was able to inplement it perfetly Big Grin
Code:
Copy      Help
scan "Func4.bmp" 0 0 1 65
RECT r
GetCursorPos +&r
r.right=r.left+200 ;;width 32
r.bottom=r.top+200 ;;height 32
if(scan("Func5.bmp" 0  r))
    out "true"
else
    out "false"

Is there a way to move the cursor to the found Func5.bmp inside the area automaticaly? I tried seting 0 to 1 and adding 0 0 1 r but won't work like that.
Thank's
#4
4-th argument 1
#5
I managed to do it with :

Code:
Copy      Help
if(scan("Func5.bmp" 0 r 1 65))

Just needed not to anounce the r variable in the find image dialog so it used the existing one. Man i got to learn the sintax..
Thank's Gintaras


Forum Jump:


Users browsing this thread: 3 Guest(s)