Sign in to follow this  
Followers 0
Loken

Choose a random coord

1 post in this topic

#1 ·  Posted (edited)

hi everyone.My problem with random coords.i need Click a random coord,if pixel found click pixel and click first coord again.

Func Coord()
    $wintitle="MozillaFirefox"
$Pixel=PixelSearch(0,0,1000,500,0xFFFFFF)
$coordx = Int(Random($minx, $maxx))
$coordy = Int(Random($miny, $maxy))
        ControlClick($wintitle, "", "", "left", 1, $coordx, $coordy)
        If isarray($Pixel)=True Then
            MouseClick("left",$Pixel[0],$Pixel[1],1,1)
        EndIf
; MOUSE CLİCK FİRST COORDS.

Thanks to all reader

does anyone know this, pls?

Edited by Loken

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