Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Fri Nov 22, 2024 1:25 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Pixel pattern a bit off
Thanked: 0 time(s)  Unread post Posted: Sun Oct 23, 2011 1:11 am 
Lifetime VIP Contributor
Lifetime VIP Contributor
User avatar



Joined: Mon Sep 26, 2011 9:38 am
Posts: 1703
Location: Space Australia
Been thanked: 78 time(s)
Has thanked: 6 time(s)
Contribution Points: 9994
Ok now basically in EE i make a pixel pattern for the revive window made out of all the black puxels in the words revive here it get the coords wrong though if i leave it as is it clicks towards the top left of the window and if i calculatebit to absolute coordonates it clicks above revive here i dont have the cide on me so will have to post later but anywho.

_________________
ImageImageImageImage
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Pixel pattern a bit off
Thanked: 0 time(s)  Unread post Posted: Sun Oct 23, 2011 1:44 am 
Partner / Developer
Partner / Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4525
Been thanked: 1346 time(s)
Has thanked: 133 time(s)
Contribution Points: 33209
When searching for pixel patterns you can specify whether you want BE to return the location of the first pixel in the pattern, or the average (center) of all pixels in the pattern.

If its still off, try disabling DirectX capturing inside BE settings.

_________________
Blue Eye - Developer / Moderator
Code:
Gigus


Please read the rules about contribution points - click here

Do you know everything about BE, the forum, licenses and contribution points?
Please take a minute to read this introduction & guidelines.


Top
 Profile  
Reply with quote  
 Post subject: Re: Pixel pattern a bit off
Thanked: 0 time(s)  Unread post Posted: Sun Oct 23, 2011 2:40 am 
Lifetime VIP Contributor
Lifetime VIP Contributor
User avatar



Joined: Mon Sep 26, 2011 9:38 am
Posts: 1703
Location: Space Australia
Been thanked: 78 time(s)
Has thanked: 6 time(s)
Contribution Points: 9994
Just a question whatwould disabling directx capturing do to help? Just a bit curious. Anyhoo ive made a bypass for now by adding 20 pixels to the y variable to bring it down to the correct location.

_________________
ImageImageImageImage
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Pixel pattern a bit off
Thanked: 0 time(s)  Unread post Posted: Sun Oct 23, 2011 2:57 am 
Partner / Developer
Partner / Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4525
Been thanked: 1346 time(s)
Has thanked: 133 time(s)
Contribution Points: 33209
if its 20 pixels off im almost 100% certain the problem will go away if you disable DirectX capturing.

And this is why.

BE monitors the screen by accessing screen data through the windows API's. However some games cannot be screen dumped using these API's.

These games can only be "screen dumped" by grabbing a copy of what is currently in the DirectX backbuffer.
The main difference between these two screen dumps though is that the title bar of the window wont be present in the DirectX screen dump (which is roughly 22 pixels in height), since its not stored in the DirectX backbuffer.

By disabling DirectX capturing, you force BE to rely only on the windows API's, in some games this will give you a black screen back, but for most, it will work just fine.

Whenever BE needs to know whats on your screen, it first checks if the window currently top most has the directX dll's loaded, if it has it attempts to retrieve a screen dump from the directX backbuffer, if it fails it tries the windows API's.

I hope that made at least a bit of sense.

_________________
Blue Eye - Developer / Moderator
Code:
Gigus


Please read the rules about contribution points - click here

Do you know everything about BE, the forum, licenses and contribution points?
Please take a minute to read this introduction & guidelines.


Top
 Profile  
Reply with quote  
 Post subject: Re: Pixel pattern a bit off
Thanked: 0 time(s)  Unread post Posted: Sun Oct 23, 2011 3:04 am 
Lifetime VIP Contributor
Lifetime VIP Contributor
User avatar



Joined: Mon Sep 26, 2011 9:38 am
Posts: 1703
Location: Space Australia
Been thanked: 78 time(s)
Has thanked: 6 time(s)
Contribution Points: 9994
Ty i will try just that then you are as helpfullbas ever.

_________________
ImageImageImageImage
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Pixel pattern a bit off
Thanked: 0 time(s)  Unread post Posted: Sun Oct 23, 2011 3:51 am 
Lifetime VIP Contributor
Lifetime VIP Contributor
User avatar



Joined: Mon Sep 26, 2011 9:38 am
Posts: 1703
Location: Space Australia
Been thanked: 78 time(s)
Has thanked: 6 time(s)
Contribution Points: 9994
Thx it worked like a dream. The only way to make it better would be if someone completed that ocr plugin making it flexible like most of the code.

_________________
ImageImageImageImage
Image


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