Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Thu Nov 21, 2024 7:16 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: Find location of first occurrence on screen
Thanked: 1 time(s)  Unread post Posted: Tue Jun 29, 2010 5:27 pm 
Partner / Developer
Partner / Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4525
Been thanked: 1346 time(s)
Has thanked: 133 time(s)
Contribution Points: 33209
Searches the screen for the specified image, and saves the result to the specified variables.

The image to search for, is easiest to create by using the Investigator, and right click + drag the region of the screen dump, you wish to create an image of.

In the screen dump below, I have marked the BE Bot, ready to be saved as a png image, which you can then select in the criteria by selecting the Browse icon.
Attachment:
regionOfImage.png
regionOfImage.png [ 55.74 KiB | Viewed 2711 times ]


Note:
When specifying Percent: "100" the image has to match exactly the one specified, including all pixels / colors and orientation.
When specifying a Percent of "99" or less, Blue Eye will ignore the orientation of the image, and solely base its criteria for a match on the colors found inside the image to be located in a "similar" way on the screen.

Hint:
If you use image recognition to recognize a written text or similar detailed targets, you should always specify "100" for accuracy, or instead use the "Pixel pattern" functions.

Usage:
Code:
 begin
     Image.Find location of first occurrence on screen("c:\imageToFind.png", "100", "variableForX", "variableForY")
 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