Jump to content

onexit equivalent to ensure code execution before exit


vince100
 Share

Recommended Posts

I'm working on a script to monitor and modify mouse cursor in a While loop.

How can I implement something like the "onexit" subroutine in AHK to ensure the mouse cursor is restored when the compiled script is terminated unexpectedly by Alt+F4 or by Task Manager?

Thanks

Edited by vince100
Link to comment
Share on other sites

OnAutoItExit was replaced by OnAutoItExitRegister in version v3.3.2.0 according to the History in helpfile. If you really have that version you should upgrade, AutoIt is after all free so you have no reason not to ;)

Edit: Download 3.3.6.1 here.

Also don't forget SciTE4AutoIt3. The SciTE included with AutoIt is only the "lite" version.

Edited by AdmiralAlkex
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...