Jump to content

Problem with [Do] loop


Go to solution Solved by jdelaney,

Recommended Posts

I like to use ConsoleWrite() for debuging

ConsoleWrite('-@error Value: ' & @error & @CRLF)

put that right under your pixel search and each loop you will see a print out of the value of @error

 

Local initializes variables and can handle multiple variables in one line if the variable names are separated by coma

Local $var1 , $var2 , $var3

By outputting the @error via ConsoleWrite, you negate the actual @error value on the following line.

PixelSearch(0,0,0,0,"0xFFFFFE")
ConsoleWrite(@error & @CRLF)
ConsoleWrite(@error & @CRLF)

Console output:

1

0

Edited by jdelaney
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
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...