Jump to content
Sign in to follow this  
Guest keebler

Random Mouseclick?

Recommended Posts

Guest keebler

I am trying to get a script to work where the mouse will give a random mouseclick withing a set region.

Currently I've tried to use the following and it doesn't seem to work

Random, x1, 0, 400

Random, y1, 0, 400

mousemove, x1, y1

LeftClick, x1, y1

Sure hope someone has a solution, thanks

Share this post


Link to post
Share on other sites
brett

Try this:

$x = Random ( 0, 100 ); 0-100 is the area you want the random click to be
$y = Random ( 0, 100 )
MouseClick ( "Left", $x, $y, 1, 1 )

-Brett

Share this post


Link to post
Share on other sites
brett

o probably not sorry...lol i've never programed in v2.

why not switch to v3?


-Brett

Share this post


Link to post
Share on other sites
Jon

I am trying to get a script to work where the mouse will give a random mouseclick withing a set region.

Currently I've tried to use the following and it doesn't seem to work

Random, x1, 0, 400

Random, y1, 0, 400

mousemove, x1, y1

LeftClick, x1, y1

Sure hope someone has a solution, thanks

It's been a long time since I've used v2, but try:

Random, x1, 0, 400
Random, y1, 0, 400
mousemove, %x1%, %y1%
LeftClick, %x1%, %y1%

Share this post


Link to post
Share on other sites
Guest keebler

I'll give that a try when I get back home later this week.

Thanks all for the help.

Share this post


Link to post
Share on other sites
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.