函数参考


OnAutoItExitUnRegister

反注册一个由AutoIt退出时将调用的用户自定义函数.

OnAutoItExitUnregister( "函数" )

参数

函数 要调用的用户自定义函数名称

返回值

成功: 返回 1
失败: 返回 0

注意/说明


相关

OnAutoItExitRegister

示例/演示


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

Sleep(1000)

OnAutoItExitUnRegister("MyTestFunc")

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

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