Sign in to follow this  
Followers 0
dgat

Right Click down, Left Click interval for a sleep duration

4 posts in this topic

I am attempting to execute a right mouse click hold and a left mouse click at a certain interval for a sleep duration.  Example: right click down for 15 seconds, at the same time right click goes down, left clicks happen every 1 second until 15 seconds has occurred.  Then I wish for the function to continue.
 
 
MouseDown("right")
MouseClick("left", X, Y, 15, 1000)
Sleep(15000)
MouseUp("right")
 
Will this perform the desired result or will it hold right down for 30 seconds instead?
 
 
 
Thanks
   

Share this post


Link to post
Share on other sites



What exactly are you trying to accomplish? 9 times out of 10, if you use the Control commands you will get better results than with Mouseclicks


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

For 15 seconds I want the right mouse button held and the left mouse button clicked once every second.  after 15 seconds right mouse up and no more left clicks

Share this post


Link to post
Share on other sites

Yes, but what will the mouse click manipulate.  We understand what you want, but why.  Is this manipulating a gui?

Here is what you requested, but again, there are much better ways to manipulate guis

MouseDown("right")
 
MouseClick("left")
For $i = 1 To 14
    Sleep(1000)
    MouseClick("left")
Next

MouseUp("right")

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0