Clicks XY pixels above

stefbox

Client
Регистрация
11.03.2013
Сообщения
25
Благодарностей
0
Баллы
1
Hello,
I would like to click on an item such as "To Action Designer" but instead of clicking on the item, i want clicks XY pixels above.

Thank you in advance for your reply.
 

LexxWork

Client
Регистрация
31.10.2013
Сообщения
1 190
Благодарностей
791
Баллы
113
t's only possible in c# action
first you find the proper element:
use any usefule method of instance.ActiveTab.FindElemtBy...
than you have to be sure the element is placed in the visual area or make the element.ScrollIntoView()
get the element position relative to vusual area of tab (actualy the left upper corner of element)
int left = element.DisplacementInTabWindow.X;
int top = element.DisplacementInTabWindow.Y;
use any offset
ltop -= 10;
there are only two standart methods to make the click action like
instance.ActiveTab.MouseClick(left, top, "left", "click");
or
instance.Click(left1, left, top, top, "Left", "Normal");
 
  • Спасибо
Реакции: proffman

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)