vince100 Posted September 17, 2010 Share Posted September 17, 2010 (edited) 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 September 17, 2010 by vince100 Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted September 17, 2010 Share Posted September 17, 2010 Hi and Welcome to the forums! Did you see OnAutoItExitRegister()? Try that. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
vince100 Posted September 17, 2010 Author Share Posted September 17, 2010 wow, that was fast. Thank you very much. I am sure it is exactly what I needed. I couldn't find the documentation of the function in the help file. Maybe my version is too old (3.3). Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted September 17, 2010 Share Posted September 17, 2010 (edited) 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 September 17, 2010 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
vince100 Posted September 17, 2010 Author Share Posted September 17, 2010 Thank you. I was using 3.3.0.0 and will upgrade to newest version. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now