Modify

Opened 16 years ago

Closed 15 years ago

#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@…> 15 years ago.
OnAutoItExit Handler

Download all attachments as: .zip

Change History (7)

comment:1 Changed 16 years ago by TicketCleanup

  • Milestone Future Release deleted
  • Version 3.2.13.3 deleted

Automatic ticket cleanup.

comment:2 follow-up: Changed 16 years ago by Valik

  • Summary changed from Multiple Exit Functions to Better 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.

comment:3 in reply to: ↑ 2 Changed 15 years ago by anonymous

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 Changed 15 years ago by Valik

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

Changed 15 years ago by MrCreatoR <mscreator@…>

OnAutoItExit Handler

comment:5 Changed 15 years ago by MrCreatoR <mscreator@…>

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 Changed 15 years ago by Jpm

  • Milestone set to 3.3.1.0
  • Owner set to Jpm
  • Resolution set to Completed
  • Status changed from new to closed

Added in version: 3.3.1.0

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 closed The owner will remain Jpm.
Author


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

 
Note: See TracTickets for help on using tickets.