Originally Posted by
sspamfilter
Hi KingToshi9,
First you will need to know the approximate size of the item, or at least be sure it will be larger than some size, for example a 3x3 pixel square. If your script normally would just click right in the middle, like
ooo
oxo
ooo
Now you can make a random function to select anywhere in that square, since you're sure the entire item/object will still be hit. So you can write this in many ways. Sometimes people will get the top left start of the square with their locator function, if the item moves, and then they will randomly choose a pixel inside of that square. Another way to do it is to find the center of the square and randomize the direction and amount you move from that center before issuing the move/click.