Aide:TrayTip.txt

De Wiki AutoIt Français
Aller à : navigation, rechercher

Document original V3.3.6.1 :

###Function###
TrayTip

###Description###
Displays a balloon tip from the AutoIt Icon. (2000/XP only)

###Syntax###
TrayTip ( "title", "text", timeout [, option] )


###Parameters###
@@ParamTable@@
title
	Text appears in bold at the top of the balloon tip. (63 characters maximum)
text
	Message the balloon tip will display. (255 characters maximum)
timeout
	A rough estimate of the time (in seconds) the balloon tip should be displayed. (Windows has a min and max of about 10-30 seconds but does not always honor a time in that range.)
option
	[optional] See Remarks.  0=No icon (default),
	1=Info icon, 2=Warning icon, 3=Error icon
@@End@@

###ReturnValue###
None.


###Remarks###
TrayTip works for only Windows 2000/XP or better.

A Tray tip will close if the AutoIt tray icon disappears. Consequently, the TrayTip may not appear if AutoItSetOption("TrayIconHide", 1) is set or if the user has disabled balloon tips via registry settings!

Windows XP usually plays a sound when displaying a balloon tip. This sound can be disabled by adding 16 to the <i>options</i> parameter or by setting an empty title.

To clear a balloon tip that is being displayed, call another tip with an empty text string (and any title).

###Related###
MsgBox, ToolTip, TrayIconHide (Option), TraySetToolTip


###Example###
@@IncludeExample@@


Document traduit V3.3.6.1 :

###Function###
TrayTip

###Description###
Affiche une info-bulle depuis l'icône du script AutoIt. (2000/XP uniquement)


###Syntax###
TrayTip ( "title", "text", timeout [, option] )


###Parameters###
@@ParamTable@@
title
    Le texte qui apparait en gras en haut de l'info-bulle. (63 caractères maximum)
text
    Message affiché par l'info-bulle. (255 caractères maximum)
timeout
    Une estimation approximative du temps (en secondes) d'affichage de l'info-bulle. (Windows a un mini/maxi d'environ 10-30 secondes, mais ne le respecte pas toujours.)
option
    [optionnel] Voir remarques. 0 = pas d'icône (défaut), 1 = icône d'information, 2 = icône attention, 3 = icône erreur.
@@End@@


###ReturnValue###
Aucune


###Remarks###
TrayTip ne fonctionne que pour Windows 2000/XP ou ultérieur.

Le TrayTip se ferme si l'icône du script AutoIt disparaît. En conséquence, le TrayTip peut ne pas apparaître si AutoItSetOption ("TrayIconHide", 1) est utilisé ou si l'utilisateur a désactivé les info-bulles via les paramètres du registre!

Windows XP joue habituellement un son lors de l'affichage d'une info-bulle. Ce son peut être désactivé en ajoutant 16 au paramètre <i>options</i> ou en utilisant un titre vide.

Pour effacer une info-bulle affiché, appelez en une autre avec une chaîne de texte vide (et n'importe quel titre).


###Related###
<a href="MsgBox.htm">MsgBox</a>, <a href="ToolTip.htm">ToolTip</a>, <a href="TrayIconHide.htm">TrayIconHide (Option)</a>, <a href="TraySetToolTip.htm">TraySetToolTip</a>


###Example###
@@IncludeExample@@


Traducteur : Jerome

Contributeurs (pour les modifications avant le Wiki) : Tlem