Modify

Opened 2 years ago

Last modified 19 months ago

#3547 new Feature Request

@ErrorStdOut or $ErrorStdOut for /ErrorStdOut

Reported by: argumentum Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

to make a reserved variable, as is in the case of $CmdLineRaw, or a macro, to hold the output from "AutoIt Error", to be held in a similar variable, let's say $ErrorStdOut, to be available at OnAutoItExitRegister(), just as @exitMethod is there, maybe @ErrorStdOut or $ErrorStdOut can be available.

Attachments (0)

Change History (6)

comment:1 Changed 2 years ago by TicketCleanup

  • Version Other deleted

Automatic ticket cleanup.

comment:4 in reply to: ↑ 3 Changed 2 years ago by argumentum

Replying to mLipok:

Just as a reference/releated request:

Just as a reference, yes. Just in case, I'll make an argument
( I'd really like this request implemented )

https://www.autoitscript.com/trac/autoit/ticket/2488

what he asked for is nonsense in my view. OnAutoitExit() runs regardless.

https://www.autoitscript.com/trac/autoit/ticket/2919

what he asked for is already there. OK Exit 0, not OK Exit 1, that is the returned errorlevel
We can use the rest of the Exit from 2 upwards for our own expected errors.
@ExitCode should reflect that.
@ExitMethod is as it should be.

Therefore, these other 2 requests are not related to this one, other than is OnAutoitExit()
I hope that the request for an @ErrorStdOut is considered.

comment:5 Changed 2 years ago by argumentum

...and maybe a hash tag and/or Opt() for the suppression of the error GUI popup, as it would make sense, given the opportunity for error to be handled, if the given hash or Opt() is purposely declared in the script.
Just as after time a #NoTrayIcon was accepted as OK to have.

comment:6 Changed 19 months ago by argumentum

Found a topic in the forums where the MsgBox is intercepted, giving the opportunity to handle this from within the script.
https://www.autoitscript.com/forum/topic/143250-grab-runtime-errors-when-script-is-run-from-a-service/?do=findComment&comment=1009391

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as new The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.