Jump to content

Recommended Posts

Posted
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
   
Posted

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

Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...