tanh_alpha Posted December 6, 2005 Share Posted December 6, 2005 I'm writing an Excel macro using AutoItX COM. However, I'm having trouble with a PixelCheckSum : TEMP=oAutoIt.PixelCheckSum(275, 230, 500, 255) (oAutoIt is the "AutoItX3.control" object that I declared earlier.) Usually, TEMP picks up a positive value, but on some occasions, TEMP gets returned with a negative value. I tried declaring TEMP to be a long datatype, but that doesn't help. I tried putting in a long sleep statement before and after the above statement, but that doesn't work either. Could it be that PixelCheckSum is returning an error code (time-out or something)? Anyone with any hunch what's happening? Or maybe suggestions to troubleshoot further? Thanks in advance! Link to comment Share on other sites More sharing options...
seandisanti Posted December 15, 2005 Share Posted December 15, 2005 I'm writing an Excel macro using AutoItX COM. However, I'm having trouble with a PixelCheckSum : TEMP=oAutoIt.PixelCheckSum(275, 230, 500, 255) (oAutoIt is the "AutoItX3.control" object that I declared earlier.)Usually, TEMP picks up a positive value, but on some occasions, TEMP gets returned with a negative value.I tried declaring TEMP to be a long datatype, but that doesn't help. I tried putting in a long sleep statement before and after the above statement, but that doesn't work either.Could it be that PixelCheckSum is returning an error code (time-out or something)? Anyone with any hunch what's happening? Or maybe suggestions to troubleshoot further?Thanks in advance!my first suggestion would be to post your code, then we could try to duplicate the issue and work from there. 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