Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 04:04

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Pixel is same but with difference position

Discussion on Pixel is same but with difference position within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1


 
elite*gold: 122
Join Date: May 2014
Posts: 2,721
Received Thanks: 532
Pixel is same but with difference position

I search a method, how I can find a pixel which more coordinates then one.

Example:
A pixel exist 3 times on my desktop (green for example), now I want to read out this 3 different pixel coordinates - how I can do this?

Pixel1: Coordinate 205,210 - green
Pixel2: Coordinate 305,495 - green
Pixel3: Coordinate 222,333 - green

How I can find this position for the pixels with Pixelsearch? - Sorry for bad english
Melli- is offline  
Old 07/04/2017, 21:13   #2

 
Moneypulation's Avatar
 
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769


Blue = Searched Pixel
Black and Green borders = PixelSearch Area

If PixelSearch returns x and y as a blue pixel, you can pixelsearch 2 more rectangles to find the rest of the blue pixels. The first rectangle would be (top,left,bottom,right) = (y+1,originalLeft,originalBottom,x). With original I mean the same parameters as used in the previous pixelsearch. 2nd rectangle: (y,x+1,originalBottom,originalRight). If you find another blue pixel in these pixelsearchs, you must call this procedure recursively. In that way you would find all blue pixels and could return them as an array.

Or you use the FastFind.au3 with FFNearestPixel and FFAddExcluded Area doing more or less the same thing
Moneypulation is offline  
Reply


Similar Threads Similar Threads
KBot & Ibot is same company? Which 1 is better same icon and same test hour
06/05/2011 - DarkOrbit - 9 Replies
KBot & Ibot is same company? Which 1 is better same icon and same test hour! I tested ibot free and cant test kbot it's says free time gone i newer used that it's same company? I want too know difference some 1 can tell me?



All times are GMT +1. The time now is 04:04.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.