How to move mouse pointer, cursor?

Регистрация
25.01.2015
Сообщения
22
Благодарностей
0
Баллы
1
I have tried with XY coordinates but that only registers an artificial click and the actual mouse pointer doesn't move. The site that I'm working with requires mouse movement, actual cursor movement.
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 453
Благодарностей
5 913
Баллы
113

pla123

Client
Регистрация
10.12.2011
Сообщения
22
Благодарностей
2
Баллы
3
instance.ActiveTab.FullEmulationMouseMove(500,500);
instance.ActiveTab.FullEmulationMouseMove(50,500);
instance.ActiveTab.FullEmulationMouseMove(250,200);

Is there a way to add random numbers to that code?

I tried this but it did not work I got an error:

double frst = Convert.ToDouble(project.Variables["Variable15"].Value);
double scnd = Convert.ToDouble(project.Variables["Variable6"].Value);

instance.ActiveTab.FullEmulationMouseMove(frst,500);
instance.ActiveTab.FullEmulationMouseMove(50,scnd);
instance.ActiveTab.FullEmulationMouseMove(scnd,200);
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 453
Благодарностей
5 913
Баллы
113
instance.ActiveTab.FullEmulationMouseMove(500,500);
instance.ActiveTab.FullEmulationMouseMove(50,500);
instance.ActiveTab.FullEmulationMouseMove(250,200);

Is there a way to add random numbers to that code?

I tried this but it did not work I got an error:

double frst = Convert.ToDouble(project.Variables["Variable15"].Value);
double scnd = Convert.ToDouble(project.Variables["Variable6"].Value);

instance.ActiveTab.FullEmulationMouseMove(frst,500);
instance.ActiveTab.FullEmulationMouseMove(50,scnd);
instance.ActiveTab.FullEmulationMouseMove(scnd,200);
why do you convert to double when int values needed?
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 453
Благодарностей
5 913
Баллы
113

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