Jump to content
Sign in to follow this  
Hollinar

Issue with AU3_PixelChecksum in c++

Recommended Posts

Hollinar

I'm writing an application in c++ that uses the autoitx dll and header. My problem is, the function is declared as long, so if the checksum of the area is over 214748364, it always returns that(or -2147483648, depending on typecasting). I'm wondering if there's a workaround for this or something? I'm using the newest release(not beta). Here's the line in question:

unsigned long testa = AU3_PixelChecksum(winposx+35, winposy+495, winposx+45, winposy+505, 0);

and the auto-it script equiv(which DOES work):

$testa = PixelChecksum($pos[0]+35, $pos[1]+495, $pos[0]+45, $pos[1]+505, 0)

Share this post


Link to post
Share on other sites
Richard Robertson

What kind of value are you expecting? It returns a number.

Share this post


Link to post
Share on other sites
Hollinar

It should be returning 4012323225, that's what the AU3 script returns. I've just updated to the newest beta version as well, no change

Share this post


Link to post
Share on other sites
Richard Robertson

Ah. Well, I'm not exactly sure what to tell you there.

Share this post


Link to post
Share on other sites
Hollinar

I'm beginning to think that it's a problem with the DLL implimentation and not my code, because I checked the raw output and it's wrong straight from the function. What's the chance this can be fixed if it's the problem?

Share this post


Link to post
Share on other sites
Hollinar

Okay, I've screenshotted the exact 10x10 pixel area that's causing the problem. It's attached.

post-18987-1225936951_thumb.png

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  

×