Jump to content

PixelCheckSum in Excel


Recommended Posts

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

  • 2 weeks later...

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

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...