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

    Class AutoIt

    The AutoIt class provides a wrapper around the AutoItX3 DLL, allowing you to call AutoIt functions from JavaScript.

    Index

    Accessors

    Constructors

    Methods

    Accessors

    • get isLoaded(): boolean

      Checks if the AutoItX3 DLL is loaded.

      Returns boolean

    Constructors

    Methods

    • Loads the AutoItX3 DLL. This method must be called before invoking any AutoIt functions. This is done so that if you're working in a multi-threaded environment, each thread has its own instance of the AutoItX3 DLL open.

      Returns void

    • Invokes a function from the AutoItX3 DLL.

      Type Parameters

      • FunctionReturnType extends Win32Type<{ __jsType?: unknown; "[species]"?: unknown }>
      • const FunctionArgumentTypes extends Win32Type<{ __jsType?: unknown; "[species]"?: unknown }>[]

      Parameters

      • functionName: string

        The name of the function to invoke.

      • functionReturnType: FunctionReturnType

        The return type of the function.

      • functionArgumentTypes: FunctionArgumentTypes

        The argument types of the function.

      • functionArguments: unknown[]

        The arguments to pass to the function.

      Returns NonNullable<FunctionReturnType["__jsType"]>

      The result of the function call.