Jump to content
Sign in to follow this  
milkman

Omitting Some Perimeters? Mouseclick Question.

Recommended Posts

milkman

Perform a mouse click operation.


MouseClick ( "button" [, x, y [, clicks [, speed ]]] )

In the help file it says that the 4th optional perimeter is speed. How can I use the optional perimeter 'speed' without having to define an x and y value.

Share this post


Link to post
Share on other sites
Valuater

when it needs to move that fast

then... how will it know where to click??

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
milkman

click at the spot the mouse is currently

Share this post


Link to post
Share on other sites
greenmachine

MouseGetPos. Look stuff up!

Share this post


Link to post
Share on other sites
Valuater

then the question is null and void... the speed is for how fast the mouse moves, not how fast it clicks

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
MHz

The speed parameter is speed to move to next MouseClick location.

I consider that you want to use

Opt('MouseClickDelay', 1)

to speedup the clicking of MouseClick

Share this post


Link to post
Share on other sites
greenmachine

Perform a mouse click operation.


MouseClick ( "button" [, x, y [, clicks [, speed ]]] )

In the help file it says that the 4th optional perimeter is speed. How can I use the optional perimeter 'speed' without having to define an x and y value.

The correct answer to this problem is (assuming a single click with the primary mouse button):

MouseClick ("primary", MouseGetPos(0), MouseGetPos(1), 1, $Speed)

Where $Speed is the speed you define.

Not sure what the other guys were answering....

Share this post


Link to post
Share on other sites
Valuater

The correct answer to this problem is (assuming a single click with the primary mouse button):

MouseClick ("primary", MouseGetPos(0), MouseGetPos(1), 1, $Speed)

Where $Speed is the speed you define.

Not sure what the other guys were answering....

In the help file it says that the 4th optional perimeter is speed. How can I use the optional perimeter 'speed' without having to define an x and y value.

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
milkman

Thanks guys, sorry I misunderstood the file.

Share this post


Link to post
Share on other sites
greenmachine

Yes Valuater, I read that part, but I also read this part:

click at the spot the mouse is currently

That goes pretty well with my solution.

Share this post


Link to post
Share on other sites
Valuater

Yes Valuater, I read that part, but I also read this part:

That goes pretty well with my solution.

then its just

MouseClick("Left")

... or right

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
greenmachine

Ok, so combine the two.. use the speed parameter, and the location the mouse is at currectly.. and you get what I posted.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.