Jump to content
Sign in to follow this  
Kore

Question/Help - ImageSearchArea

Recommended Posts

Kore

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

Share this post


Link to post
Share on other sites
Kore

I found another way, using size detection etc from Size array from WinPos.

Share this post


Link to post
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
Sign in to follow this  

×