Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Thu Jun 12, 2025 10:18 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: Move to object (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: 1364 time(s)
Has thanked: 133 time(s)
Contribution Points: 33238
Finds an area on screen containing the specified group of colors within the specified maximum range of each other, and moves the mouse to the center of the found location.

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

Populating the arguments for this instruction, 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 ~ 10 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 826 times ]


Usage:
Code:
 begin
     Mouse.Move to object (Hex)("7fc35e", "cb0000", "cb0000", "cb0000", "61a4ec", "f9d311", "89c660", "", "", "", "0", "19")
 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