Jump to content

Recommended Posts

Posted (edited)

:)

Im tring to dectect 2 zones...... using pixelsearch like this.

$down=0
Do
                                                                                        PixelSearch($xl2 - $aoe_r, $yl2 - $aoe_r, $xl2 + $aoe_r, $yl2 + $aoe_r, $rod_id, $sens_read_l)
                        If @error = 0 and $down=0 Then  
                        Send("{numpad6 down}")
                        $down=1
                        Elseif @error=1 and $down=1 Then    
                                                            Send("{numpad6 up}")
                        $down=0
                        EndIf

                        PixelSearch($xr - $aoe_r, $yr - $aoe_r, $xr + $aoe_r, $yr + $aoe_r, $rod_id, $sens_read_r)
                        If @error = 0 and $down=0 Then  
                        Send("{numpad4 down}")
                        $down=1
                        Elseif @error=1 and $down=1 Then    
                        $down=0
                        EndIf
until 0

basically scanning 2 boxes for the correct color.

when the colour is present press and hold the corresponding key (continue to scan both boxes) until the other box is found to contian that colour or corresponding box does not contain correct colour.

??????

Edited by Aceguy

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
×
×
  • Create New...