Jump to content
Sign in to follow this  
tanh_alpha

PixelCheckSum in Excel

Recommended Posts

tanh_alpha

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!

Share this post


Link to post
Share on other sites
seandisanti

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.

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.