Retrieves the error code set by the last AutoIt function call.
The error code.
const result = error();console.log(result); // Output: 1 (example output, actual value depends on the last AutoIt function call) Copy
const result = 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.