Jump to content

Question/Help - ImageSearchArea


Kore
 Share

Recommended Posts

ImageSearchArea('Check.png', 1, $Top, $Left, $Bottom, $Right, $x, $y, 0)

1920x1080 resolution

$Top = 20
$Left = 960
$Bottom = 600
$Right = 980

 

The Top, Left, Bottom, Right is Desktop location Is it possible to make it load / scan within a specific window instead of locked to Desktop location? Because currently if i move the window its scanning in the scan locations stay on desktop location not within specific window.

Func checkForImage()
local $search = _ImageSearchArea('Check.png', 1, $Top, $Left, $Bottom, $Right, $x, $y, 0)
If $search = 1 Then
MouseMove($x, $y, 2)
EndIf
EndFunc

Sorry kinda new to the ImageSearchArea functionality.

Edited by Kore
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...