Jump to content

Issue with AU3_PixelChecksum in c++


Hollinar
 Share

Recommended Posts

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)
Link to comment
Share on other sites

  • Administrators

I'll check the code.

Edit: Native AutoIt is returning a double but the DLL/COM version is only returning an int32 so it's a bug on our part. Will be fixed/changed in the next beta.

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