Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Wed Aug 21, 2019 10:48 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Pixel Pattern Trigger
Thanked: 0 time(s)  Unread post Posted: Mon Jul 22, 2019 6:25 pm 
New User
New User



Joined: Sat Jul 20, 2019 7:08 pm
Posts: 5
Been thanked: 0 time(s)
Has thanked: 2 time(s)
Contribution Points: 10
How do you make a macro which runs a sequense of actions in a loop untill a certain pixel pattern shows up in the screen, then stop the loop and continue the macro?


Top
 Profile  
Reply with quote  
 Post subject: Re: Pixel Pattern Trigger
Thanked: 1 time(s)  Unread post Posted: Wed Jul 24, 2019 2:26 am 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 1924
Location: USA
Been thanked: 425 time(s)
Has thanked: 33 time(s)
Contribution Points: 16655
I would just use a combination of an "if" statement and a new function; like this:

loop stuff
loop stuff
loop stuff
if pixel pattern is found...
execute function("whatever")

If the pixel pattern is not found, it will just stay in the loop doing the actions you had before. If it's found, then it will do whatever is in function("whatever") just remember at the end of the function, tell it to go back to the loop (if that's where you want it to go). The easiest way to do that is to put your loop in a different function then you can go straight to that point...unless there was nothing else in your macro, then you can just add "restart macro" to the end of the function.

_________________
----------------------------------------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  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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