Aide:TraySetOnEvent.txt
De Wiki AutoIt Français
Document original V3.3.6.1 :
###Function###
TraySetOnEvent
###Description###
Defines a user function to be called when a special tray action happens.
###Syntax###
TraySetOnEvent ( specialID, "function" )
###Parameters###
@@ParamTable@@
specialID
See the <a href="#SpecialIDTable">Special ID table</a> below.
function
The name of the user function to call.
@@End@@
###ReturnValue###
@@ReturnTable@@
Success: Returns 1.
Failure: Returns 0.
@error: 1 if the "function" is not defined.
@@End@@
###Remarks###
OnEvent functions are only called when the option TrayOnEventMode is set to 1 - when in this mode TrayGetMsg is NOT used at all.
<a name="SpecialIDTable"></a><b>Special ID table</b>
@@StandardTable1@@
<b>Special Id</b> <b>Value</b> <b>Comments</b>
$TRAY_EVENT_SHOWICON -3 The tray icon will be shown.
$TRAY_EVENT_HIDEICON -4 The tray icon will be hidden.
$TRAY_EVENT_FLASHICON -5 The user turned the tray icon flashing on.
$TRAY_EVENT_NOFLASHICON -6 The user turned the tray icon flashing off.
$TRAY_EVENT_PRIMARYDOWN -7 The primary mouse button was pressed on the tray icon.
$TRAY_EVENT_PRIMARYUP -8 The primary mouse button was released on the tray icon.
$TRAY_EVENT_SECONDARYDOWN -9 The secondary mouse button was pressed on the tray icon.
$TRAY_EVENT_SECONDARYUP -10 The secondary mouse button was released on the tray icon.
$TRAY_EVENT_MOUSEOVER -11 The mouse moves over the tray icon.
$TRAY_EVENT_PRIMARYDOUBLE -13 The primary mouse button was double pressed on the tray icon.
$TRAY_EVENT_SECONDARYDOUBLE -14 The secondary mouse button was double pressed on the tray icon.
@@End@@
If the function is an empty string "" the previous user-defined is disabled.
The above constants are defined in #include <Constants.au3>
###Related###
TrayOnEventMode (Option), TrayItemSetOnEvent, TraySetClick
###Example###
@@IncludeExample@@
Document traduit V3.3.6.1 :
###Function###
TraySetOnEvent
###Description###
Définit l'appel d'une fonction utilisateur lors d'une action spéciale dans la zone de notification.
###Syntax###
TraySetOnEvent ( specialID, "function" )
###Parameters###
@@ParamTable@@
specialID
Voir la <a href="#SpecialIDTable">table des ID Spéciaux</a> ci-dessous.
function
Le nom de la fonction utilisateur à appeler.
@@End@@
###ReturnValue###
@@ReturnTable@@
Succès: Retourne 1.
Échec: Retourne 0.
@error: 1 si la "fonction" n'est pas définie.
@@End@@
###Remarks###
Les fonctions événementielles sont appelée seulement lorsque l'option TrayOnEventMode est mis à 1. Dans ce mode, TrayGetMsg n'est PLUS utilisé du tout.
<a name="SpecialIDTable"></a><b>table des ID Spéciaux</b>
@@StandardTable1@@
<b>ID Spécial</b> <b>Valeur</b> <b>Commentaires</b>
$TRAY_EVENT_SHOWICON -3 L'icône de la zone de notification sera affiché.
$TRAY_EVENT_HIDEICON -4 L'icône de la zone de notification sera caché.
$TRAY_EVENT_FLASHICON -5 L'utilisateur fait flasher l'icône de la zone de notification.
$TRAY_EVENT_NOFLASHICON -6 L'utilisateur arrête de faire flasher l'icône de la zone de notification.
$TRAY_EVENT_PRIMARYDOWN -7 Le bouton principal de la souris a été appuyé sur l'icône de la zone de notification.
$TRAY_EVENT_PRIMARYUP -8 Le bouton principal de la souris a été relaché sur l'icône de la zone de notification.
$TRAY_EVENT_SECONDARYDOWN -9 Le bouton secondaire de la souris a été appuyé sur l'icône de la zone de notification.
$TRAY_EVENT_SECONDARYUP -10 Le bouton secondaire de la souris a été relaché sur l'icône de la zone de notification.
$TRAY_EVENT_MOUSEOVER -11 La souris passe au dessus de l'icône de la zone de notification.
$TRAY_EVENT_PRIMARYDOUBLE -13 Le bouton principal de la souris a été appuyé deux fois sur l'icône de la zone de notification.
$TRAY_EVENT_SECONDARYDOUBLE -14 Le bouton secondaire de la souris a été appuyé deux fois sur l'icône de la zone de notification.
@@End@@
Si la fonction est une chaîne vide "" la fonction utilisateur précédente est désactivée.
Les constantes ci-dessus sont définies dans #include <Constants.au3>
###Related###
<a href="TrayOnEventMode.htm">TrayOnEventMode (Option)</a>, <a href="TrayItemSetOnEvent.htm">TrayItemSetOnEvent</a>, <a href="TraySetClick.htm">TraySetClick</a>
###Example###
@@IncludeExample@@
Traducteur : Tlem