AndreasNWWWWW Posted May 21, 2018 Share Posted May 21, 2018 (edited) Hi, is there a way i can make a list of mousemovement based upon pixelsearch? example, i have 2-8 different move patterns based upon a given pixel. $leter1 = PixelSearch (929, 90,1089,113,$gulprikk, 10, 2);5 $leter2 = PixelSearch (752, 276,1237,291,$gulprikk, 10, 2);5 and so on, so far ive nested it in a if IsArray ($leter1) =1 Then mousemove action. endif but is it possible to have all movements in a function of some kind? something like Func move() MouseMove($leter1[0],$leter1[1],25) MouseMove($leter2[0],$leter2[1],25) EndFunc so it just runs the correct movement based upon what pixel is found? i'm trying to make a image repair tool so i'm searching for pixels in 5-9 rows. update: this seems to work, but is there a cleaner way to do it? Func move() if IsArray ($leter1) =1 then MouseMove($leter1[0],$leter1[1],25) EndIf if IsArray ($leter2) =1 then MouseMove($leter2[0],$leter2[1],25) EndIf EndFunc Edited May 21, 2018 by AndreasNWWWWW Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now