Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Mon Jan 25, 2021 12:36 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Object can be located on screen (Hex)
Thanked: 1 time(s)  Unread post Posted: Sun Jun 27, 2010 9:00 am 
Partner / Developer
Partner / Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4525
Been thanked: 1273 time(s)
Has thanked: 133 time(s)
Contribution Points: 33032
Will search for a number of colors, and determine if a group of colors, matching the colors specified, can be found within the specified range of each other ("Size (max)" argument).

Each color may vary +/- the "Range" argument.

Populating the arguments for this criteria, is easiest done, using the investigator to mark each pixel color you want the object (group of pixels) to consist of, the Size argument, will automatically be pre-populated with the longest calculated distance between two pixels you selected, you can specify 1 ~ 15 colors.

In the screen dump below, I've used the Investigator to mark the colors i need, in order to recognize the "Windows Start Button".
Attachment:
objectRecognition.png
objectRecognition.png [ 135.83 KiB | Viewed 698 times ]


Example:
Passing the following arguments to this criteria:
Color 1 (Hex): 1894d6
Color 2 (Hex): 1d567d
Color 3 (Hex): a24c3c
Color 4 (Hex): b68f3a
Color 5 (Hex): f3c32d
Range: 5
Size (max): 10

Then the criteria will be met if one or more groups no larger than "10" pixels in diameter, contains all (or as many as specified in BE configuration) of the colors specified (or within +/- "5" of the RGB values, of each of the specified HEX colors).



Usage:
Code:
 if  Color.Object can be located on screen (Hex)("1894d6", "1d567d", "a24c3c", "b68f3a", "f3c32d", "", "", "", "", "", "", "", "", "", "", "5", "10")
     begin
          ...
     end

_________________
Blue Eye - Developer / Moderator
Code:
Gigus


Please read the rules about contribution points - click here

Do you know everything about BE, the forum, licenses and contribution points?
Please take a minute to read this introduction & guidelines.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group