Sign in to follow this  
Followers 0
kart442

Easy answer, How to write this code to work correctly

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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

and wuts that next doing there

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Have you tried an _arraydisplay to make sure the correct values are in there?

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