@ahmic/autoit-js
    Preparing search index...

    Function PixelGetColor

    • Retrieves the color of a pixel at the specified screen coordinates.

      Parameters

      • x: number

        The X coordinate of the pixel.

      • y: number

        The Y coordinate of the pixel.

      Returns number

      The color of the pixel as a hexadecimal number.

      import { PixelGetColor } from '@ahmic/autoit-js';

      const color = PixelGetColor(50, 50);

      console.log(color.toString(16)); // Output: "ff00ff"