Jump to content

Recommended Posts

Posted

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)
Posted

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?

  • Administrators
Posted

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.


 

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
×
×
  • Create New...