Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Fri Jul 20, 2018 6:40 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Hello! Brand newbie here looking for some help! thank you!
Thanked: 0 time(s)  Unread post Posted: Fri May 11, 2018 2:41 am 
New User
New User



Joined: Thu May 10, 2018 4:20 am
Posts: 6
Been thanked: 0 time(s)
Has thanked: 3 time(s)
Contribution Points: 22
Hi guys just discovered Blue eye last night from a friend and i LOVE it!

now with my first tutorial i'm testing some stuff and i think i'm running into either Symantec error or logical errors.
so what i'm trying to do is this...

1. if screen have x, click at location a.
2. if screen doesn't have x, keep on clicking at location b
3. if click at location a is successful(meaning screen now will change), now wait 5 sec, and click at location d.
4. once screen changes again, click now at location e, f, g.
5. now back at old screen and can start at #1.

so i am brand new at this, so i have no idea what keyword to use, if i need to do pixel detection, or image, or color, or what do i need to do to make it work.
so here is my example just starting out.

begin
if Image.Can be located on screen near coordinate("C:\Users\aznlj2001\Desktop\BE_Images\test1.png", "100", "487", "217", "20")
begin
Humanly.Click at coordinate("949", "232", "left", "yes")
Macro.Pause("5000")
Humanly.Click at coordinate("1038", "535", "left", "yes")
end
if Image.Can not be located on screen near coordinate("C:\Users\aznlj2001\Desktop\BE_Images\test1.png", "100", "487", "217", "10")
begin
Humanly.Click at coordinate("450", "597", "left", "yes")
end
end

so basically i tried image detection i took a small image with the investigate tool and use that to detect it. so far it works kind of
so once it detect the image at location on my screen, it clicks at a.
and it also keeps on clicking on b when it cannot detect the image.
the problem i'm running into is once it did find image and click at location a.
once it does, the screen change, now i don't know how to get out of the IF statement. i tried a macro pause command and it pause and then click at a location d. but then it loops back to clicking
at location b again because it doesn't detect the old image on the new screen....
basically how do i break out of the loop and have it do something else?

what i want is something like if condition1 is met, do this. else do this.
if condtion is met and it did something, now it need go continue do something else too and ignore the else statement.
i'm not sure what should i do?

how do i break out an IF begin end statement and then continue else if other wise? what statement keyword to use to detect if screen occured and then go on to next step? if not then go do something else etc...

sorry, newbie here just starting out on BE.

Thank you


Top
 Profile  
Reply with quote  
 Post subject: Re: Hello! Brand newbie here looking for some help! thank yo
Thanked: 1 time(s)  Unread post Posted: Fri May 11, 2018 12:19 pm 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 1787
Location: USA
Been thanked: 375 time(s)
Has thanked: 30 time(s)
Contribution Points: 16210
BEM is linear so else statements are implied; you don't need to write them. So if you have an "if" statement in which the criteria is not met, it skips it and goes to the next line like this:

If screen A is detected //if whatever you're looking for is not present then it skips to...
Begin
do something
end
//...skips to here
Click at e, f, g

In your case, since the screens change you need some code to identify which screen you are on. Same way you did this:
1. if screen have x, click at location a.
2. if screen doesn't have x, keep on clicking at location b
...but look at which screen it is first, then look for x

Find something which helps you identify which screen it is, look for that first.
- If it's screen 1, then look for x
- If it's screen 2, then click e,f,g
After you click on [button(s)], check screen again

You're off to a good start. Let us know if you need more 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: Hello! Brand newbie here looking for some help! thank yo
Thanked: 0 time(s)  Unread post Posted: Fri May 11, 2018 3:53 pm 
New User
New User



Joined: Thu May 10, 2018 4:20 am
Posts: 6
Been thanked: 0 time(s)
Has thanked: 3 time(s)
Contribution Points: 22
Syrifina wrote:
BEM is linear so else statements are implied; you don't need to write them. So if you have an "if" statement in which the criteria is not met, it skips it and goes to the next line like this:

If screen A is detected //if whatever you're looking for is not present then it skips to...
Begin
do something
end
//...skips to here
Click at e, f, g

In your case, since the screens change you need some code to identify which screen you are on. Same way you did this:
1. if screen have x, click at location a.
2. if screen doesn't have x, keep on clicking at location b
...but look at which screen it is first, then look for x

Find something which helps you identify which screen it is, look for that first.
- If it's screen 1, then look for x
- If it's screen 2, then click e,f,g
After you click on [button(s)], check screen again

You're off to a good start. Let us know if you need more help.


THANK YOU SO MUCH!
i just went ahead and paid for a year. now could i make my own category? or do i have to choose Demos Category only when creating new? haha thank you so much

this program is so good. and i'm testing now with functions and calling them while having a loop inside the function.
this thing is amazing! lol

i probably ask more information here since i'm still so confused on other stuff but thank you again!


Top
 Profile  
Reply with quote  
 Post subject: Re: Hello! Brand newbie here looking for some help! thank yo
Thanked: 0 time(s)  Unread post Posted: Fri May 11, 2018 8:46 pm 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 1787
Location: USA
Been thanked: 375 time(s)
Has thanked: 30 time(s)
Contribution Points: 16210
Quote:
could i make my own category?
If it's for a game, we don't make categories for every game out there...but it's based on how active our community is for that game. So if a lot of people are interested in your macros then we will make a new category if it's popular. If it's a game (and not listed), put it under Gaming-->General; there's also a category for "request new games."

If it's not a game, you would need to describe/name it and we will consider it.

When you login you should be taken to "Board Index" and can browse from there. There's also a forum search in the upper right. There's a lot of information so you can always just do a keyword search for whatever you're trying to do. There's also guides and video tutorials...plus the documentation pages here: viewforum.php?f=135 which is a list of BEM's instructions/criteria with examples on how to use them.

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