Greetings y'all,
While tracing an issue flagged by user MagicSpark here:
I came across this puzzling AutoIt behaviour:
Seterror(1)
If @error Then Beep(1111,100) ; this works
Seterror(1)
If Execute('@error') Then Beep(1111,100) ; this fails
Now I'm not sure whether this should be considered a bug or a feature. I presume Execute starts by resetting @error (and @extended) and updates it with a non-zero error code when something fails along the way. Trouble is, this makes evaluation of @er