Function ProcessExists

  • Checks if a process exists.

    Parameters

    • process: string

      The name of the process to check (e.g., 'notepad.exe').

    Returns boolean

    True if the process exists, false otherwise.

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

    const exists = ProcessExists('notepad.exe');

    console.log(exists); // Output: true