Kore Posted August 20, 2013 Share Posted August 20, 2013 (edited) 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 August 20, 2013 by Kore Link to comment Share on other sites More sharing options...
Kore Posted August 21, 2013 Author Share Posted August 21, 2013 I found another way, using size detection etc from Size array from WinPos. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now