Sign in to follow this  
Followers 0
Guest keebler

Random Mouseclick?

6 posts in this topic

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



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

Is your solution for version 2 or 3?

Share this post


Link to post
Share on other sites

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

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

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  
Followers 0