automate the click of the mouse

Ranorex Spy, Recorder, and Studio.
vdoddaguni
Posts: 11
Joined: Mon Apr 11, 2011 9:34 pm

automate the click of the mouse

Post by vdoddaguni » Fri Apr 29, 2011 9:14 pm

Hi

I need to click the mouse 10,000 times on the home page. Could you please let me know how we can do this?
Right now, I am logging into the website, clicking on a button and logging out. clicking on a button should be repeated 10,000 times before logging out.

Thanks

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: automate the click of the mouse

Post by Ciege » Fri Apr 29, 2011 9:40 pm

Quick C# for loop:

Code: Select all

//Login here

for (int i = 0; i < 10000; i++)
{
  MyButton.Click();
}

//Logout here
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: automate the click of the mouse

Post by Support Team » Sat Apr 30, 2011 12:16 pm

There is even an overload of the Click method providing that functionality:
myButton.Click(10000, Mouse.DefaultMoveTime);
Regards,
Alex
Ranorex Team
.
Image

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: automate the click of the mouse

Post by Ciege » Mon May 02, 2011 4:10 pm

Well, ya, there is that too... :roll:
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...