Modify

#414 closed Feature Request (Completed)

Better OnAutoItStart/OnAutoItExit handling

Reported by: anonymous Owned by: Jpm
Milestone: 3.3.1.0 Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

I propose to add multiple OnExitFuncs, so that you can easily clean up code in the End of Script. Some UDFs ( like GUICtrlSetOnHover UDF )using GDIplus or Timers free resources in OnAutoItExit, so you can't use this funtion without making changes to UDFs.

It would be easier, if there was a Command like
AddOnAutoItExitFunc("FunctionName")

Attachments (1)

OnAutoItExit_Handler.zip (1.1 KB ) - added by MrCreatoR <mscreator@…> on Dec 30, 2008 at 9:02:01 PM.
OnAutoItExit Handler

Download all attachments as: .zip

Change History (7)

comment:1 by TicketCleanup, on Jun 27, 2008 at 2:00:47 PM

Milestone: Future Release
Version: 3.2.13.3

Automatic ticket cleanup.

comment:2 by Valik, on Jun 27, 2008 at 4:15:08 PM

Summary: Multiple Exit FunctionsBetter OnAutoItStart/OnAutoItExit handling

I agree, the way both OnAutoItStart and OnAutoItExit are implemented is absolute rubbish and needs re-designed from the ground up to facilitate more than one handler being registered without complex chaining by the user.

I'm renaming the ticket to better reflect the content.

in reply to:  2 comment:3 by anonymous, on Dec 22, 2008 at 10:53:43 PM

Replying to Valik:

I agree, the way both OnAutoItStart and OnAutoItExit are implemented is absolute rubbish and needs re-designed from the ground up to facilitate more than one handler being registered without complex chaining by the user.

I'm renaming the ticket to better reflect the content.

Any progress on this?

Wouldn't it be quite simple to change it to a simple stack model chain where the first function added to the chain is the last to be called?

comment:4 by Valik, on Dec 22, 2008 at 11:40:17 PM

If there was progress don't you think it would stand to reason you would see the results of that progress?

by MrCreatoR <mscreator@…>, on Dec 30, 2008 at 9:02:01 PM

Attachment: OnAutoItExit_Handler.zip added

OnAutoItExit Handler

comment:5 by MrCreatoR <mscreator@…>, on Dec 30, 2008 at 9:03:45 PM

I made some sort of UDF (OnAutoItExit Handler, also attached as a zip-file) from the idea (in the first post), hope it can be usefull untill it will be(?) added natively.

comment:6 by Jpm, on Jan 8, 2009 at 4:30:56 PM

Milestone: 3.3.1.0
Owner: set to Jpm
Resolution: Completed
Status: newclosed

Added in version: 3.3.1.0

Modify Ticket

Action
as closed The owner will remain Jpm.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.