Jump to content

Recommended Posts

Guest keebler
Posted

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

Posted

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
Guest keebler
Posted

Is your solution for version 2 or 3?

  • Administrators
Posted

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%


 

Guest keebler
Posted

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

Thanks all for the help.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...