Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Sat Dec 07, 2019 9:26 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: ImageSearch...help
Thanked: 0 time(s)  Unread post Posted: Tue Aug 13, 2019 1:37 pm 
New User
New User



Joined: Tue Jul 30, 2019 5:23 pm
Posts: 19
Been thanked: 0 time(s)
Has thanked: 9 time(s)
Contribution Points: 22
Hello Guys;

I've made this:

if Image.Can be located on screen near coordinate("c:\1.png", "1", "960", "540", "1")
begin
Humanly.Click("left", "yes")
Keyboard.Press key("x")
end

and it don't work.

I also made this, for a major precision:

if Image.Can be located on screen near coordinate("c:\1.png", "100", "960", "541", "5")
begin
Humanly.Click("left", "yes")
Keyboard.Press key("x")
end

but nothing.

What's wrong? :cry: :cry: :cry:


Last edited by Ony on Fri Aug 16, 2019 3:30 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: ImageSearch...help
Thanked: 1 time(s)  Unread post Posted: Tue Aug 13, 2019 3:33 pm 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 1968
Location: USA
Been thanked: 438 time(s)
Has thanked: 34 time(s)
Contribution Points: 16798
You should check the execution log; you didn't explain what part isn't working, like it can't find the image, it's not clicking in the right spot, or it's not pressing the x key.

If it's not doing anything, then it's probably not finding the image. It would be real easy to tell if you check the execution log, because it would say "looking for image" and "image not found" or whatever is going wrong. Then you need to make some adjustments. The first suggestion is that you image is probably not directly on your "c" drive as you posted and is probably in a folder so the path you have written is wrong. If you have that sorted out and it's still not finding it, you should post your image; I can tell you if BEM would have a hard time locating that image or not...there's certain things that make an image hard to locate. But again, this should all be contained in the execution log and tell you exactly what the problem is.

The other issue is that you have it humanly click, but where? It will click at the current mouse position, so is your mouse in the center where you want it? Sounds like you could use "humanly click at coordinate" since you already know where you want to click, but otherwise you need to first use mouse.move to position your cursor before you click.

Try those and see if it 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: ImageSearch...help
Thanked: 0 time(s)  Unread post Posted: Wed Aug 14, 2019 1:13 am 
New User
New User



Joined: Tue Jul 30, 2019 5:23 pm
Posts: 19
Been thanked: 0 time(s)
Has thanked: 9 time(s)
Contribution Points: 22
Thanks for your answer :)

this is the script, and this is the image:

if Image.Can be located on screen near coordinate("E:\1.png", "1", "960", "540", "1")
begin
Mouse.Click("left")
Keyboard.Press key("x")
end


Attachments:
1.png
1.png [ 142 Bytes | Viewed 433 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: ImageSearch...help
Thanked: 0 time(s)  Unread post Posted: Wed Aug 14, 2019 2:44 pm 
New User
New User



Joined: Tue Jul 30, 2019 5:23 pm
Posts: 19
Been thanked: 0 time(s)
Has thanked: 9 time(s)
Contribution Points: 22
Nothing...i'm becoming mad :evil:

This is the log file:

Started
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Result: No
Checking if: Image.Can be located on screen near coordinate(Path: D:\1.png, Percent: 1, X Coordinate: 960, Y Coordinate: 540, Distance: 1)
Aborted

The Attachment is an example image, for the game that i want to apply the macro.

But nothing, it wont's work, don't click and then, don't shot.

:cry: :cry: :cry:


Attachments:
image.png
image.png [ 412.84 KiB | Viewed 427 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: ImageSearch...help
Thanked: 1 time(s)  Unread post Posted: Thu Aug 15, 2019 8:33 am 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 1968
Location: USA
Been thanked: 438 time(s)
Has thanked: 34 time(s)
Contribution Points: 16798
The log says that it is not finding the image, that's why it's not doing anything.

You want it to hit the red targets? Use color instead, it would be much faster too

_________________
----------------------------------------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: ImageSearch...help
Thanked: 0 time(s)  Unread post Posted: Thu Aug 15, 2019 12:53 pm 
New User
New User



Joined: Tue Jul 30, 2019 5:23 pm
Posts: 19
Been thanked: 0 time(s)
Has thanked: 9 time(s)
Contribution Points: 22
Yes, whit the color script (RGB 255,0,0) it works.


Last edited by Ony on Fri Aug 16, 2019 3:28 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: ImageSearch...help
Thanked: 0 time(s)  Unread post Posted: Thu Aug 15, 2019 3:48 pm 
New User
New User



Joined: Tue Jul 30, 2019 5:23 pm
Posts: 19
Been thanked: 0 time(s)
Has thanked: 9 time(s)
Contribution Points: 22
if Color.At coordinate is within (RGB)("255", "0", "0", "960", "540")
begin
Keyboard.Press key("x")
end


This is the script, yeah! Great program, powerful!


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