Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Wed Feb 19, 2025 8:26 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Need Help on Macro
Thanked: 0 time(s)  Unread post Posted: Mon Aug 09, 2021 9:31 pm 
Gold Contributor
Gold Contributor



Joined: Thu May 24, 2012 12:08 am
Posts: 351
Location: Philippines
Been thanked: 34 time(s)
Has thanked: 2 time(s)
Contribution Points: 66
Hi Team,

I am struggling in finding out a way to find a way to make the bot recognize when the "Hook" in the screenshot below passes the yellow/green line.

1.) The green/yellow line changes everytime - So I could not use the "Color.At Coordinate"
2.) The speed of the moving hook remains static

Image

Does anyone have any idea how I can make this work ?

Thanks in advanced !


Top
 Profile  
Reply with quote  
 Post subject: Re: Need Help on Macro
Thanked: 1 time(s)  Unread post Posted: Tue Aug 10, 2021 1:47 am 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 2259
Location: USA
Been thanked: 535 time(s)
Has thanked: 38 time(s)
Contribution Points: 17741
Certainly more than one way to do it. Typically if something like the hook has a constant speed, then I'll just use the timing to tell me where the hook is going to be and just look under it to see if it's green or not. But in this case I would probably use something like this:
1. find pixel pattern (of the green bar)
- use center = yes (one of the things you need to fill in when using find pixel pattern)
to ensure you're in the center of the green bar
- this will also give you the coordinates of the green bar to use other instructions
the last 2 things to fill out for find pixel pattern is the variable for x and y coordinates
which will be in the center of the bar if you used "yes" like I suggested
2. wait for color at coordinate not to be "green" (or to be black like the hook, or "to change")
- you have the coordinates now of where to look from #1 above
3. keyboard.press key "space bar"

Hope that helps!

_________________
----------------------------------------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: Need Help on Macro
Thanked: 1 time(s)  Unread post Posted: Tue Aug 10, 2021 2:17 am 
Gold Contributor
Gold Contributor



Joined: Thu May 24, 2012 12:08 am
Posts: 351
Location: Philippines
Been thanked: 34 time(s)
Has thanked: 2 time(s)
Contribution Points: 66
Thanks for this, I saw that as an option but I never really understood how the pixel pattern work.

Like I will take 1 coordinate

R,G,B,X,Y,R2,G2,B2,X2,Y2,etc

Do I use the X/Y - Coordinate for this ? Otherwise can you tell me what that "relative location" refers to ?


Top
 Profile  
Reply with quote  
 Post subject: Re: Need Help on Macro
Thanked: 0 time(s)  Unread post Posted: Tue Aug 10, 2021 3:24 am 
Gold Contributor
Gold Contributor



Joined: Thu May 24, 2012 12:08 am
Posts: 351
Location: Philippines
Been thanked: 34 time(s)
Has thanked: 2 time(s)
Contribution Points: 66
Syrifina wrote:
Certainly more than one way to do it. Typically if something like the hook has a constant speed, then I'll just use the timing to tell me where the hook is going to be and just look under it to see if it's green or not. But in this case I would probably use something like this:
1. find pixel pattern (of the green bar)
- use center = yes (one of the things you need to fill in when using find pixel pattern)
to ensure you're in the center of the green bar
- this will also give you the coordinates of the green bar to use other instructions
the last 2 things to fill out for find pixel pattern is the variable for x and y coordinates
which will be in the center of the bar if you used "yes" like I suggested
2. wait for color at coordinate not to be "green" (or to be black like the hook, or "to change")
- you have the coordinates now of where to look from #1 above
3. keyboard.press key "space bar"

Hope that helps!


So I tried playing around with it and found some helpful vids. However since the orange/green bars are random sometimes they switch around Green in the left and orange in the right side and vice versa. I think the hook is too fast for the macro to read the statement as it passes the trigger line even without any pauses :(


Top
 Profile  
Reply with quote  
 Post subject: Re: Need Help on Macro
Thanked: 0 time(s)  Unread post Posted: Tue Dec 27, 2022 8:57 am 
New User
New User



Joined: Sat Dec 24, 2022 9:56 am
Posts: 1
Location: Australia
Been thanked: 0 time(s)
Has thanked: 1 time(s)
Contribution Points: 10
So I gave it a go and discovered some useful videos. However, because the orange/green bars are randomized, they occasionally alternate between green on the left and orange on the right. Although there are no pauses, I believe the hook is too quick for the macro to read the phrase as it reaches the trigger line.I work as a chair.
Thank you.

_________________
Dining Chair https://www.clicknbuyaustralia.com/dining-chairs/ Online Australia.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 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:  
cron


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