Jump to content

Executing a command when exit


Guest vDrag0n
 Share

Recommended Posts

From helpfile:

OnExitFunc Sets the name of the function called when AutoIt exits (default is OnAutoItExit).

It is an option, so i towuld look something like this:

Opt("OnExitFunc", "OnAutoItExit")
While 1
    Sleep(1000)
WEnd
Func OnAutoItExit()
    MsgBox(0, "", "")
EndFunc
FootbaG
Link to comment
Share on other sites

This is an interesting question:

1) Because the answer is clearly documented

2) Because the answer is probably difficult to find in the help file unless you know the right combination of search terms.

Perhaps the documentation for the "Exit" keyword should list "OnAutoItExit" in the related section. :)

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

Perhaps the documentation for the "Exit" keyword should list "OnAutoItExit" in the related section. :)

<{POST_SNAPBACK}>

Yea, it took me a while to find it, I never knew it existed until I saw it in someones code :D
FootbaG
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...