Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Thu Nov 21, 2024 7:50 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: (Resolved) Bug?: Relative Coordinate Issue
Thanked: 0 time(s)  Unread post Posted: Wed Dec 03, 2014 4:39 pm 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 2259
Location: USA
Been thanked: 535 time(s)
Has thanked: 38 time(s)
Contribution Points: 17741
Gigus,

I created a macro that attempts to use relative coordinates; either I'm very rusty at this or it may not be working properly. The code I'm using is:
Code:
 begin
     Color.Limit area of interest to window("World Golf Tour - Internet Explorer", "Yes")
     Color.Limit area of interest to coordinates("615", "705", "60", "15")
     when  Color.At coordinate is within (RGB range)("130", "202", "99", "15", "1128", "919")
          begin
               Mouse.Click("Left")
          end
 end
The actual (relative) coordinates I want to use are 667/714...but I'm having to use the absolute coordinates (1128/919). I did some other testing like:
Code:
 
    Window.Calculate relative coordinates("World Golf Tour - Google Chrome", "Yes", "1128", "919", "varForX", "varForY")
     Mouse.Move to coordinate("667", "714")  // I did use color.limit area of interest; just like the script above
     Macro.Pause("1000")
     Mouse.Move to coordinate relative to window("{varForX}" , "{varForY}" , "World Golf Tour - Google Chrome", "Yes")
The calculation results for the relative coordinates work fine; I get 667/714 just as I did when I manually calculated them. But whether using "color" or "mouse.move" they both go to absolute coordinates.
*NOTE: "Mouse.Move to coordinate relative to window" works properly though

So, "color.limit area of interest" may not be working properly (or like I said, maybe I'm just rusty). Can you look into this for us please?
- I tried both DirectX enabled/disabled
- I tried both Windows API/Virtual drivers
- Windows 7 64bit

_________________
----------------------------------------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: Bug?: Relative Coordinate Issue
Thanked: 0 time(s)  Unread post Posted: Tue Dec 09, 2014 12:26 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
The Color.Limit area of interest.... commands does not affect relative coordinates.

The limit-instructions only exists to offer a way to improve performance, since captured screen dumps will only be analysed within that limited area.

Relative-commands are always relative to a window, it does not know about limited areas of interests.
I can see the reason for confusion though, perhaps the behavior should be changed.

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