Question Cmt créer 1 Notification dans la barre de tâche ?
- Laurent Dardenne
- Auteur du sujet
- Hors Ligne
- Modérateur
Réduire
Plus d'informations
- Messages : 6302
- Remerciements reçus 68
il y a 15 ans 9 mois #2525
par Laurent Dardenne
Tutoriels PowerShell
Ce code, proposé sur un autre forum, affiche un message dans la zone de notification de la barre de tâche :
[code:1]
#Auteur Metatron.
$Message=\"Message d'alerte.\"
[void][reflection.assembly]::loadwithpartialname(\"System.Windows.Forms\"«»)
[void][reflection.assembly]::loadwithpartialname(\"System.Drawing\"«»)
$NotifyIcon = New-Object system.windows.forms.notifyicon
$NotifyIcon.Icon = new-object system.drawing.icon(join-path $pwd \"MonIcone.ico\"«»)
$NotifyIcon.Visible = $true
$NotifyIcon.ShowBalloonTip(10,\"Bulle\",$Message,[system.windows.forms.tooltipicon]::warning)
[/code:1]
Utile pour être informé de la fin d'un traitement relativement long.
[code:1]
#Auteur Metatron.
$Message=\"Message d'alerte.\"
[void][reflection.assembly]::loadwithpartialname(\"System.Windows.Forms\"«»)
[void][reflection.assembly]::loadwithpartialname(\"System.Drawing\"«»)
$NotifyIcon = New-Object system.windows.forms.notifyicon
$NotifyIcon.Icon = new-object system.drawing.icon(join-path $pwd \"MonIcone.ico\"«»)
$NotifyIcon.Visible = $true
$NotifyIcon.ShowBalloonTip(10,\"Bulle\",$Message,[system.windows.forms.tooltipicon]::warning)
[/code:1]
Utile pour être informé de la fin d'un traitement relativement long.
Tutoriels PowerShell
Connexion ou Créer un compte pour participer à la conversation.
- maycry
- Hors Ligne
- Membre premium
Réduire
Plus d'informations
- Messages : 119
- Remerciements reçus 0
il y a 15 ans 9 mois #2624
par maycry
Réponse de maycry sur le sujet Re:Cmt créer 1 Notification dans la barre de tâche
GG ca peut être cool
Connexion ou Créer un compte pour participer à la conversation.
Temps de génération de la page : 0.064 secondes
- Vous êtes ici :
- Accueil
- forum
- PowerShell
- Contributions à la communauté
- Cmt créer 1 Notification dans la barre de tâche ?