Jump to content

Recommended Posts

Posted

I need to click (just mouseDown) on a button and than move the mouse and hold down for a while, I tried like this but it doesn't work.

MouseClickDrag("", x1, y1, x2, y2)
        Sleep(time);

the mouse down is release before the sleep but i need to hold down all the sleep time

  • Moderators
Posted

@ladvace welcome to the forum. If you're clicking on a button, why bother with the MouseClickDrag rather than ControlClick or another more stable method? If you can explain exactly what you are trying to accomplish, there is probably a ready-made solution for it already.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

  • Moderators
Posted

You still didn't answer the question. It is difficult to assist without understanding just what you're trying to accomplish. It is not surprising it is not working for you; there are better ways.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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