Jump to content

Question about mousemovement upon pixelsearch?


Recommended Posts

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 by AndreasNWWWWW
Link to comment
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
 Share

  • Recently Browsing   0 members

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