Modify

Opened 18 years ago

Closed 17 years ago

#414 closed Feature Request (Completed)

Better OnAutoItStart/OnAutoItExit handling

Reported by: anonymous Owned by: J-Paul Mesnage
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@…> 17 years ago.
OnAutoItExit Handler

Download all attachments as: .zip

Change History (7)

comment:1 by TicketCleanup, 18 years ago

Milestone: Future Release
Version: 3.2.13.3

Automatic ticket cleanup.

comment:2 by Valik, 18 years ago

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, 17 years ago

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, 17 years ago

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

by MrCreatoR <mscreator@…>, 17 years ago

Attachment: OnAutoItExit_Handler.zip added

OnAutoItExit Handler

comment:5 by MrCreatoR <mscreator@…>, 17 years ago

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 J-Paul Mesnage, 17 years ago

Milestone: 3.3.1.0
Owner: set to J-Paul Mesnage
Resolution: Completed
Status: newclosed

Added in version: 3.3.1.0

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


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