Christoph_ Posted October 31, 2006 Share Posted October 31, 2006 I've seen people asking from this, however there is a rather simple solution to this. Usually you scan the screen linewise or pixelwise. In order to solve it set a Xclude Area like $XEx1=10 (starting X to exclude) $XEx2=20 (ending X to exclude) $YEx1=30 (starting Y to exclude) $YEy2=50 (ending Y to exclude) Search for your pattern as usual and make a little check within your function that discards the result if it's in the Area, like: IF $XResult >= $XEx1 AND $XResult <= $XEx2 AND $YResult <= $YEx1 AND $YResult >= Y$Ex2 Then $Linecounter=$Linecounter+1 ; assuming you count the lines else call the function/routine you usally call if you have found nothing ! Else ;continue with your functions like normal Doing this you scan like you always do, however if your result is in the exclude area you just continue as if you had found nothing. 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