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