Functions > Misc >


OnAutoItExitUnRegister

Désenregistre une fonction qui est appelée à la fermeture du script.

OnAutoItExitUnRegister ( "function" )

Paramètre

function Le nom de la fonction utilisateur.

Valeur de retour

Succès: Retourne 1.
Échec: Retourne 0.

En relation

OnAutoItExitRegister

Exemple

#include <MsgBoxConstants.au3>

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

Sleep(1000)

OnAutoItExitUnRegister("MyTestFunc")

Func MyTestFunc()
    MsgBox($MB_SYSTEMMODAL, "Résultat de sortie 1", 'Message de sortie à partir de MyTestFunc()')
EndFunc   ;==>MyTestFunc

Func MyTestFunc2()
    MsgBox($MB_SYSTEMMODAL, "Résultat de sortie 2", 'Message de sortie à partir de MyTestFunc2()')
EndFunc   ;==>MyTestFunc2