sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27868
[Question #253748]: Region
New question #253748 on Sikuli:
https://answers.launchpad.net/sikuli/+question/253748
Match window = new Match();
Location posicao;
//window is the inicial imagem
posicao = window.getCenter();
//the position that I want to clikc
posicao.x = posicao.x - calculo;
//creating a new region with the correct position
Region botao = window.setLocation(posicao);
botao.hover();
botao.highlight(5);
In this code, when I use botao.highlight() the mark stays in the center of the image that I want (variable posicao) , but when I use botao.hover() the mouse pointer goes to a different place (the center of the old image - variable window).
What is wrong?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.