@ahmic/autoit-js
Version: 
Node.js bindings for AutoItX3.dll
35 lines (34 loc) • 809 B
TypeScript
/**
 * Writes text to the clipboard.
 *
 * @param value The text to put in the clipboard.
 *
 * @example
 * ```typescript
 * import { ClipPutSync, ClipGetSync } from '@ahmic/autoit-js';
 *
 * ClipPutSync('Hello');
 *
 * console.log(ClipGetSync()); // Outputs: Hello
 * ```
 *
 * @see https://www.autoitscript.com/autoit3/docs/functions/ClipPut.htm
 */
export declare function ClipPutSync(value: string): void;
/**
 * Writes text to the clipboard.
 *
 * @param value The text to put in the clipboard.
 *
 * @example
 * ```typescript
 * import { ClipPut, ClipGet } from '@ahmic/autoit-js';
 *
 * ClipPut('Hello');
 *
 * console.log(ClipGet()); // Outputs: Hello
 * ```
 *
 * @see https://www.autoitscript.com/autoit3/docs/functions/ClipPut.htm
 */
export declare function ClipPut(value: string): Promise<void>;