Retrieves the error code set by the last AutoIt function call.
A promise that resolves to the error code.
import { error } from '@ahmic/autoit-js';const result = await error();console.log(result); // Output: 1 (example output, actual value depends on the last AutoIt function call) Copy
import { error } from '@ahmic/autoit-js';const result = await error();console.log(result); // Output: 1 (example output, actual value depends on the last AutoIt function call)
https://www.autoitscript.com/autoit3/docs/functions/SetError.htm
Retrieves the error code set by the last AutoIt function call.