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

    Function ClipGet

    • Retrieves text from the clipboard.

      Parameters

      • characterCount: number = 2048

        The maximum number of characters to retrieve. Default is 2048.

      Returns string

      The text from the clipboard.

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

      // Assuming the text "Hello" is in the clipboard

      for (let i = 0; i < 5; i++) {
      console.log(ClipGet(i + 1));
      }

      // Output:
      // H
      // He
      // Hel
      // Hell
      // Hello