Function Reference


OnAutoItExitUnRegister

UnRegisters a function that was called when AutoIt exits.

OnAutoItExitUnRegister ( "function" )

Parameters

function The name of the user function that was called.

Return Value

Success: 1.
Failure: 0.

Related

OnAutoItExitRegister

Example

#include <MsgBoxConstants.au3>

OnAutoItExitRegister("MyTestFunc")
OnAutoItExitRegister("MyTestFunc2")

Sleep(1000)

OnAutoItExitUnRegister("MyTestFunc")

Func MyTestFunc()
    MsgBox($MB_SYSTEMMODAL, "Exit Results 1", 'Exit Message from MyTestFunc()')
EndFunc   ;==>MyTestFunc

Func MyTestFunc2()
    MsgBox($MB_SYSTEMMODAL, "Exit Results 2", 'Exit Message from MyTestFunc()')
EndFunc   ;==>MyTestFunc2