Jump to content

Easy answer, How to write this code to work correctly


kart442
 Share

Recommended Posts

Just need to know how to get the array to function correctly.

Thanks for your help

CODE
$color1 = _ArrayCreate (PixelGetColor($x, $y),PixelGetColor($x, $yu1),PixelGetColor($x, $yu3))

_ArrayDisplay($color1)

if $color1[0] = $color[1] And $color1[2] Then

MouseMove($x,$yu2)

MouseMove($x,$yu3)

EndIf

Next

Link to comment
Share on other sites

if $color1[0] = $color[1] And $color[0] = $color1[2] Then

and wuts that next doing there

There is some other code above that has the "FOR"

But "if $color1[0] = $color[1] And $color[0] = $color1[2]" still didn't make the mouse move and the colors are all equal.

There are no errors.

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...