How to click on the intersecting x and y graph coordinates?

Asked by saryu

How to click on the intersecting x and y graph coordinates?

I tried to click on graph grid using

ROI = find(Pattern("x_coordinate_parameter.png").targetOffset(270,-2))
#region of interest is to the right of x_coordinate_parameter.png
click(getLastMatch())
click(ROI)

This worked as long as my screen resolution was same. This didn't work when i changed my screen resolution.

So, How can i click on the intersecting point of x_coordinate_parameter & y_coordinate_parameter in my graph. Please advise.

Question information

Language:
English Edit question
Status:
Expired
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
carl (maibannato) said :
#1

I do not use these procedures, but I advise you to try another way!

keep in mind that changing the resolution is equal to change images.
change resolution also adds pixels to the screen -> turns everything more displaced

1) The easiest way is to study a format specific to each solution

2) alternatively, you can work on cordinates in relation to the screen as:
[pseudocode]
X = Screen.getX () * 20/100;
Y = Screen.getY () * 50/100;
in this case I'm choosing a point in the middle screen as Y and 20% from left as X

Revision history for this message
saryu (sarayu-m) said :
#2

Can you be more clear please?
I am not getting the right solution

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.