Jump to content

Recommended Posts

Posted

Hello all,

I have a problem, when calling the AU3_PixelChecksum from interop or api reference the results are -2147483648 when the nleft and ntop are under 20?

This is weird, can anybody shed some light on why this occurres? I have used the beta and 3.2.8.1 version; both generate the same result. From an autoit script this function succeeds without any probs.

Thanks,

Daniel

Posted (edited)

CODE
Dim intResult As Integer

Dim aut3Main As New AutoItX3Lib.AutoItX3

intResult = aut3Main.PixelChecksum(0, 0, 50, 50, 1) 'doesn't work

intResult = aut3Main.PixelChecksum(1, 1, 50, 50, 1) 'doesn't work

intResult = aut3Main.PixelChecksum(1, 1, 250, 250, 1) 'doesn't work

intResult = aut3Main.PixelChecksum(20, 20, 250, 250, 1) 'doesn't work

intResult = aut3Main.PixelChecksum(0, 0, 1, 1, 1) 'works

intResult = aut3Main.PixelChecksum(1, 1, 2, 2, 1) 'works

intResult = aut3Main.PixelChecksum(19, 19, 50, 50, 1) 'works

intResult = aut3Main.PixelChecksum(19, 19, 1, 1, 1) 'works

intResult = aut3Main.PixelChecksum(20, 20, 50, 50, 1) 'works

Here you go...

Edited by dnc

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