Jump to content

Recommended Posts

Posted

Hi I'm new in programming and when I try to wait colour to continue the action, I get this error.

Variable used without being declared.:
$waitpixel=PixelSearch (673,154,842,302, $WaitPixelColor,0xF8F4F8)
$waitpixel=PixelSearch (673,154,842,302, ^ ERROR

And That's my code. Anyone knows why getting error ?

While 1
    $waitpixel=PixelSearch (673,154,842,302, $WaitPixelColor,0xF8F4F8)
    If Not @error Then ExitLoop
    Sleep(10)
WEnd

 

Posted

Welcome to AutoIt and the forum!

The error message perfectly explains what causes the error ;)

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted
  On 6/27/2020 at 10:46 AM, jackiemagpie said:

yeah but how can I declare the variable, that what I want to know ?

Expand  

Declaring variables is one of the basic steps when starting to write scripts in AutoIt and is perfectly explained in the help file!

My UDFs and Tutorials:

  Reveal hidden contents

 

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
  • Recently Browsing   0 members

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