Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Wed Dec 19, 2018 11:12 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Wait for and locate pixel pattern
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: 4523
Been thanked: 1193 time(s)
Has thanked: 132 time(s)
Contribution Points: 32847
Pauses the executing macro until the specified pattern of pixels with the specified colors, placed relatively to each other, exactly as specified can be located on the screen, and then saves the coordinates of the located pattern to the specified variables.

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

Populating the arguments for this instruction, is easiest done, using the investigator to mark each pixel of the pattern you want to search for, you can specify 2 ~ 250 colors.

In the screen dump below, I've used the Investigator to mark the pixel pattern needed, in order to recognize the BE Robot.
Attachment:
pixelPattern.png
pixelPattern.png [ 114.13 KiB | Viewed 748 times ]


The syntax of the pattern is (RGB colors):"R,G,B,X change, Y change, R,G,B, X change, Y change etc."

Usage:
Code:
 begin
     Color.Wait for and locate pixel pattern("3,7,89,2,10,21,21,21,-6,202,1,9,190,195,189,13,2,180,180,180,12,-12,202,5,1,176,181,177", "0", "varForX", "varForY")
 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