Hollinar Posted November 6, 2008 Share Posted November 6, 2008 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 More sharing options...
Richard Robertson Posted November 6, 2008 Share Posted November 6, 2008 What kind of value are you expecting? It returns a number. Link to comment Share on other sites More sharing options...
Hollinar Posted November 6, 2008 Author Share Posted November 6, 2008 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 Link to comment Share on other sites More sharing options...
Richard Robertson Posted November 6, 2008 Share Posted November 6, 2008 Ah. Well, I'm not exactly sure what to tell you there. Link to comment Share on other sites More sharing options...
Hollinar Posted November 6, 2008 Author Share Posted November 6, 2008 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? Link to comment Share on other sites More sharing options...
Hollinar Posted November 6, 2008 Author Share Posted November 6, 2008 Okay, I've screenshotted the exact 10x10 pixel area that's causing the problem. It's attached. Link to comment Share on other sites More sharing options...
Administrators Jon Posted November 11, 2008 Administrators Share Posted November 11, 2008 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. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now