Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Tue Nov 24, 2020 2:51 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Detect if there is a certain color in the mouse path
Thanked: 0 time(s)  Unread post Posted: Thu Jul 23, 2020 8:17 pm 
New User
New User



Joined: Tue Jul 07, 2020 6:09 pm
Posts: 12
Been thanked: 0 time(s)
Has thanked: 3 time(s)
Contribution Points: 26
Hello,
First I want to thank you, I have learned a lot how to post here on the forum.
However, from the moment we learn, the need to evolve constructions arises.
That said, is there any way to check if there is an obstacle in a certain path from the mouve to a target (it could be an RGB color)?

For example, I would have to fix a mouse point at a given coordinate X Y and scroll to an RGB color, but there couldn't be a certain RGB color on that path ....

I'll try to draw to facilitate:

Thank you!


Attachments:
obstaculo.png
obstaculo.png [ 12.21 KiB | Viewed 560 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: Detect if there is a certain color in the mouse path
Thanked: 1 time(s)  Unread post Posted: Thu Jul 23, 2020 11:15 pm 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 2124
Location: USA
Been thanked: 490 time(s)
Has thanked: 37 time(s)
Contribution Points: 17300
Yes you can script that. There are various ways you could do it, but the one that comes to mind to my first is using the Criteria and Instructions for "mouse." There are instructions for move mouse in direction: until color changes, while it is a color, while it is not a color etc. There are criteria for while it's over a color or while it is not over a color.

You could just move the mouse in a direction and check for colors with "get color at mouse position" or use that in combination with move.mouse (when it stops, check the color).

Probably a lot more ways; check the documentation pages to see what you think fits best for your scenario.

_________________
----------------------------------------Syrifina---------------------------------------------------
PM me for licenses and/or licensing information: Click Here
[Be sure to include and update your profile with your BE ID]

Forum Rules
Reminder of rules regarding Contribution points
Getting started in 1, 2, 3
Virtual Drivers; Manual Installers


Top
 Profile  
Reply with quote  
 Post subject: Re: Detect if there is a certain color in the mouse path
Thanked: 0 time(s)  Unread post Posted: Thu Jul 23, 2020 11:51 pm 
New User
New User



Joined: Tue Jul 07, 2020 6:09 pm
Posts: 12
Been thanked: 0 time(s)
Has thanked: 3 time(s)
Contribution Points: 26
Thank you for always being considerate.
I really am not too lazy to look and I studied the manuals well.
But I didn’t find something the way I need to dissolve it ...
It would look something like this:

My current position is COORDINATE X Y my target is at COORDINATE X Y.

I will click on the TARGET if in the mouse path from MY POSITION until the TARGET does not have a certain RGB color.

Something like...


Attachments:
exemple.png
exemple.png [ 23.13 KiB | Viewed 548 times ]
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


You cannot post new topics in this forum
You can 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