Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Sun Jun 24, 2018 1:47 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Wait for Color timer
Thanked: 0 time(s)  Unread post Posted: Fri Mar 30, 2018 7:01 pm 
New User
New User



Joined: Fri Mar 30, 2018 6:57 pm
Posts: 1
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 10
Hi,

I've added a "Color.Wait for color at coordinate to be (RGB)" in the script, but sometimes the program disconnects and so the script freezes. Is there a way I can add a timer to the wait command so If after a certain time has passed, it skips the command and moves on or restarts the loop? I dont want to use "If.color at coordinate is" since it doesnt always work.

Thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Wait for Color timer
Thanked: 0 time(s)  Unread post Posted: Fri Mar 30, 2018 8:50 pm 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 1783
Location: USA
Been thanked: 374 time(s)
Has thanked: 30 time(s)
Contribution Points: 16197
No, but there are other options.

1. the best thing to do would be to find out why "if color" is not working all the time for you. I'm not sure why that would not work, but wait for the color does.
2. Use a pixel pattern instead of color with "if Color.Pixel pattern appears on screen within (ms)"...this adds your timeout
3. Use the opposite with "while" instead. So, instead of "wait for color to be [red]" use "while color is not [red]"...so you have the option for a timeout. Adding a stopwatch in there, start a count, or macro.pause and search again...all the usual stuff.

_________________
----------------------------------------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