Jump to content
Sign in to follow this  
sleinininono

How can you left click while moving ? mouse control

Recommended Posts

Hello.

I d like to create a script which click at a certain place, drag till another and continue its trajectory without stopping.

 

I thought about those two options :

 

MouseClickDrag ( "left", 1200, 220, 900, 750, 2)

and

MouseMove(1200,220)
MouseDown("left")
Sleep(200)
MouseMove(900,750,2)
MouseUp("left")
MouseMove(980,780,2)

 

but it isn't fast enough : the mouse stops when it arrives at the point of "Mouse Up". Is there a way to bypass that problem?

 

thanks !

 

Share this post


Link to post
Share on other sites

well i don't really understand your answer. What is that ? I'm not a huuge coder just an amateur so i can understand basic help but what you send me is quite hard to read. Where should I look ? please be a little more explicit 😕

Share this post


Link to post
Share on other sites

@sleinininono

What @mikell and @Earthshine was meaning, it's the option MouseClickDragDelay, which is a parameter that indicates the pause made by the function MouseClickDrag() at the start and at the end of the drag operation.

You can change the value of this parameter using AutoItSetOption() or Opt() function :)

 


Click here to see my signature:

Spoiler

Thoughts:

  • I will always thank you for the time you spent for me.
    I'm here to ask, and from your response, I'd like to learn.
    By my knowledge, I can help someone else, and "that someone" could help in turn another, and so on.

/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

ALWAYS GOOD TO READ:

 

Share this post


Link to post
Share on other sites

UEach help file has examples at the bottom.

If you can’t read and understand the material then how are you ever going to learn to program? Your response has indicated extreme laziness

Read and execute the examples is how you learn. We were all new at one point But that is no excuse for not learning. Wanting to be spoonfed won’t help you learn. YOU must read the help file And put forth an effort

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites

i understand and respect what you're saying.

In any case, changing options was a good idea but it doesn't solve my problem. My mouse is still stopping at some point (between the two commands). I'm suspecting that it accelerates and when it almost reached the aim point it decelerates. However, what i need is a really smooth movement of the mouse where in the middle it releases the left button.

Any idea how to do that :/?

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...