Question #194102 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/194102

    Status: Open => Answered

Roman Podolyan proposed the following answer:
Errrrrrr... what you mean by 'capture' here?

If you want to click the buttons, and the button matrix is static, all
buttons have same width and same height, of course, you can build a
function which captures one top left button, gets some "zero
coordinates" out of its position, and then returns coordinates for
screen Click from button row/column number.

You need just build that function measuring single button length and
interval between two buttons.

It would look like:

x = topleft_button_center_x + (column - 1) * (button_width  + 
horizontal_interval_between_buttons) 
y = topleft_button_center_y + (row - 1) * (button_height + 
vertical_interval_between_buttons)


Is that - coordinates for clicking - what you want?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to