ladvace Posted September 5, 2019 Share Posted September 5, 2019 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 Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted September 5, 2019 Moderators Share Posted September 5, 2019 @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! Link to comment Share on other sites More sharing options...
ladvace Posted September 6, 2019 Author Share Posted September 6, 2019 I tried also to MouseDown and the move but it didn't work, the drag seems to be the closest solution btw, thank you Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted September 6, 2019 Moderators Share Posted September 6, 2019 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now