Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Wed Feb 20, 2019 1:07 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: BEM stopped working - 1/28/2019
Thanked: 0 time(s)  Unread post Posted: Tue Jan 29, 2019 5:44 am 
New User
New User



Joined: Tue Jan 15, 2019 5:37 am
Posts: 5
Been thanked: 0 time(s)
Has thanked: 1 time(s)
Contribution Points: 10
Hello,

my BEM stopped working all of the sudden.

it works for an hour then the "create / edit macro" freezes as if its still running.. but there is no action going on in the last command.
I did try duplicating it but it has the same outcome. this happen just earlier.

no codes added, it was working fine for the past week.

please advise,


Top
 Profile  
Reply with quote  
 Post subject: Re: BEM stopped working - 1/28/2019
Thanked: 0 time(s)  Unread post Posted: Wed Jan 30, 2019 10:09 am 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 1870
Location: USA
Been thanked: 401 time(s)
Has thanked: 33 time(s)
Contribution Points: 16475
Is it just one macro in particular that makes it freeze or does it happen while running any macros? Freezes usually occur with some type of memory leak or search loop that over-taxes your computer...a copy of the macro would help.

_________________
----------------------------------------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: BEM stopped working - 1/28/2019
Thanked: 0 time(s)  Unread post Posted: Thu Jan 31, 2019 2:23 am 
New User
New User



Joined: Tue Jan 15, 2019 5:37 am
Posts: 5
Been thanked: 0 time(s)
Has thanked: 1 time(s)
Contribution Points: 10
Hi,

the macro is doing fine.. its just that it all happens after few hours of BEM running..

here's the code if you needed it.

Code:
 if  Color.At coordinate is (RGB)("36", "156", "214", "1719", "522")
     begin loop()
          Humanly.Click at coordinate("1612", "362", "left", "yes")
          Macro.Pause("500")
          Macro.Break from loop("yes")
     end
 if  Color.At coordinate is (RGB)("72", "156", "23", "1565", "914")
     begin loop()
          Humanly.Click at coordinate("1565", "914", "left", "yes")
          Macro.Pause("500")
          Macro.Break from loop("yes")
     end
 if  Color.At coordinate is not (RGB)("137", "214", "37", "160", "203")
     begin
          Keyboard.Hold keys("1")
          Macro.Pause("50")
          Keyboard.Release keys("1")
          Macro.Pause("2000")
     end
 if  Color.At coordinate is (RGB)("255", "255", "204", "1290", "377")
     begin
          if  Color.At coordinate is (RGB)("146", "159", "194", "943", "919")
               begin
                    Macro.Pause("10000")
               end
          if  Color.At coordinate is not (RGB)("146", "159", "194", "943", "919")
               begin
                    macro.pause("1000")
                    Humanly.Click at coordinate("1276", "384", "left","yes")
                    Macro.Pause("500")
                    Macro.Break from loop("yes")
               end
     end
 if  Color.At coordinate is (RGB)("255", "255", "204", "1694", "585")
     begin
          if  Color.At coordinate is (RGB)("146", "159", "194", "943", "919")
               begin
                    Macro.Pause("10000")
               end
          if  Color.At coordinate is not (RGB)("146", "159", "194", "943", "919")
               begin
                    macro.pause("1000")
                    Humanly.Click at coordinate("1682", "596", "left", "yes")
                    Macro.Pause("500")
                    Macro.Break from loop("yes")
               end
     end
 if  Color.At coordinate is (RGB)("237", "116", "87", "901", "518")
     begin
          macro.pause("1000")
          Humanly.Click at coordinate("901", "518", "left", "yes")
          Macro.Pause("500")
          Macro.Break from loop("yes")
     end
 if  Color.At coordinate is (RGB)("255", "255", "204", "1464", "568")
     begin
          Function.Execute("hunt")
     end
 if  Color.Near coordinate is (RGB)("255", "210", "36", "1692", "433", "120")
     begin
          Function.Execute("hunt")
     end

function("hunt")
     begin
          if  Color.At coordinate is (RGB)("26", "171", "239", "1288", "376")
               begin
                    if  Color.At coordinate is (RGB)("146", "159", "194", "943", "919")
                         begin
                              Macro.Pause("10000")
                         end
                    if  Color.At coordinate is not (RGB)("146", "159", "194", "943", "919")
                         begin
                              macro.pause("1000")
                         end
                    if  Color.At coordinate is (RGB)("146", "159", "194", "943", "919")
                         begin
                              Macro.Pause("10000")
                         end
                    if  Color.At coordinate is not (RGB)("146", "159", "194", "943", "919")
                         begin
                              macro.pause("1000")
                         end
                    if  Color.At coordinate is (RGB)("146", "159", "194", "943", "919")
                         begin
                              Macro.Pause("10000")
                         end
                    if  Color.At coordinate is (RGB)("146", "159", "194", "943", "919")
                         begin
                              Keyboard.Hold keys("1")
                              Macro.Pause("1000")
                              Keyboard.Release keys("1")
                              Macro.Pause("1000")
                         end
                    if  Color.At coordinate is not (RGB)("60", "87", "140", "572", "274")
                         begin
                              Keyboard.Hold keys("{<tab>}")
                              Macro.Pause("500")
                              Keyboard.Release keys("{<tab>}")
                              Macro.Pause("4000")
                         end
               end
     end
function
 


Top
 Profile  
Reply with quote  
 Post subject: Re: BEM stopped working - 1/28/2019
Thanked: 0 time(s)  Unread post Posted: Thu Jan 31, 2019 9:23 pm 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 1870
Location: USA
Been thanked: 401 time(s)
Has thanked: 33 time(s)
Contribution Points: 16475
If you read your script and assume that all of your "if" statements return a negative result then you have no macro.pauses in your script...only RGB searches, one after another. That's the type loop that will eventually cause a crash; either to BEM or your computer.

I know that you have generous pauses if the parameters are met, but take a look if none are met and you should see the problem. To resolve it you should add pauses (even the slightest pauses help) in between your RGB searches (or some of them) to help when the searches return a negative result.

There is another way to resolve it, but I don't think it's the best for what you're doing. The other way is to add "freeze screen dump cache", run it once, and then a "flush screen dump cache" at the end (or beginning). It works really well for performing a lot of searches and preventing crashes, but your macro.pauses if the search results are true are too long for this method to be efficient in all circumstances. You would need to add these in all your loops over 1 second if you wanted accurate results.

So I think adding pauses in between your "if" statements is the best option. BEM can run 100's of RGB searches per second and will try to do as many as possible that your computer can handle if you don't have something scripted to regulate the speed.

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