Jump to content
Sign in to follow this  
YpR^

Mouse-click "range" ?

Recommended Posts

YpR^

Is it possible to make the mouse click randomly within an area of ex. 50 x 50 pixels ?

Edited by YpR^

Share this post


Link to post
Share on other sites
GO7

Is it possible to make the mouse click randomly within an area of ex. 50 x 50 pixels ?

yep i you write the function it is !

Func RandomClick($x, $y)
    $x_pos = Random($x - 25, $x + 25, 1)
    $y_pos = Random($y - 25, $y + 25, 1)
    MouseClick("left", $x_pos, $y_pos)
EndFunc


For $i = 0 To 10
    RandomClick(600,600)
    Sleep(500)
Next

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  

×