automate the click of the mouse : Automation Tools

automate the click of the mouse

Ranorex Spy, Recorder, and Studio.

automate the click of the mouse

Postby vdoddaguni » Fri Apr 29, 2011 10: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
vdoddaguni
 
Posts: 11
Joined: Mon Apr 11, 2011 10:34 pm

Re: automate the click of the mouse

Postby Ciege » Fri Apr 29, 2011 10: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
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA

Re: automate the click of the mouse

Postby Support Team » Sat Apr 30, 2011 1:16 pm

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

Regards,
Alex
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4837
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: automate the click of the mouse

Postby Ciege » Mon May 02, 2011 5: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...
User avatar
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA


Return to Automation Tools

Who is online

Users browsing this forum: No registered users and 0 guests