Jump to content
Sign in to follow this  
darklonerlv

pixel search help

Recommended Posts

darklonerlv

func start()
  
     
   $left = False
   $right = False
         
    Do
     PixelSearch (442,373,449,398,2737969,10) 
      if true then = $left 
   Do 
    PixelSearch (1230,373,1238,398,2737969,10) 
    if true then = $right
    
    if $left Then
     PixelSearch( 814, 339, 821, 354, 13863956, 10 )
    Until  Not @error
    
    if $right then  pixelsearch ( 859, 339, 866, 354, 13863956, 10)
  Until Not @error
   sleep(GUICtrlRead($inputas)*1000)

        $Stopped = false
        Send("{Right Down}")

is the code i have what its intended function is to search for 2 locations of a color if a certain one is found to run the corresponding secondary pixel search and continue with the function

Share this post


Link to post
Share on other sites
Blue_Drache

First of all, "What is this, I don't even..." Your code doesn't even LOOK like AutoIt code.

Your syntax and Engineer's syntax look awfully similar. Regardless, I've answered this question before with a custom function. See this post here:

Third ...

What are you trying to automate?

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.