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.
 
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);
 
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?
 

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