Shane0000 Posted July 17, 2014 Share Posted July 17, 2014 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 Link to comment Share on other sites More sharing options...
jdelaney Posted July 17, 2014 Share Posted July 17, 2014 View helpfile to see why: SetError When entering a function @error is set to 0. 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 More sharing options...
jdelaney Posted July 17, 2014 Share Posted July 17, 2014 (edited) 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 July 17, 2014 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 More sharing options...
Shane0000 Posted July 17, 2014 Share Posted July 17, 2014 (edited) yeah i just didnt feel like expanding his if statement for him that was discussed earlier in thread Edited July 17, 2014 by Shane0000 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now