Modify

Opened 10 years ago

Closed 10 years ago

#2882 closed Bug (Fixed)

AutoItX PixelChecksum Bug

Reported by: JohnOne Owned by: Jon
Milestone: 3.3.13.20 Component: AutoItX
Version: 3.3.12.0 Severity: None
Keywords: AutoItx PixelChecksum C# Cc:

Description

It does not work in C# (don't know about other OS') and returns 0 regardless of coordinates.

namespace AutoItXTest
{
    class Program
    {
        static void Main(string[] args)
        {
            Rectangle Rect = new Rectangle(10, 10, 10, 10);
            System.UInt32 cksm = AutoItX.PixelChecksum(Rect, 1);
            //uint cksm = AutoItX.PixelChecksum(Rect, 1);
            Debug.WriteLine("Checksum = " + cksm.ToString());
        }
    }
}

I suspect it is because the return value can be as large as uint64, and the function only accommodates a return of uint32.

Attachments (0)

Change History (1)

comment:1 Changed 10 years ago by Jon

  • Milestone set to 3.3.13.20
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [11074] in version: 3.3.13.20

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Jon.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.