Menu

Windows native notifications

Glenn
2020-03-02
2023-06-23
  • Glenn

    Glenn - 2020-03-02

    Just want to pass along that I needed native Windows notifications so the message would persist until ackowledged. This will get you the balloon notification and appear in the notification center:

    Under "issue command on update": PowerShell -ExecutionPolicy bypass -File "C:\Users\Path\Path\WebChangeMonitor.ps1"

    Here is the code to put into your text editor and then save as WebChangeMonitor.ps1 (or whatever you prefer):

    Add-Type -AssemblyName System.Windows.Forms 
    $global:balloon = New-Object System.Windows.Forms.NotifyIcon
    $path = (Get-Process -id $pid).Path
    $balloon.Icon = [System.Drawing.Icon]::ExtractAssociatedIcon($path) 
    $balloon.BalloonTipIcon = [System.Windows.Forms.ToolTipIcon]::Warning 
    $balloon.BalloonTipText = ' '
    $balloon.BalloonTipTitle = "WebChangeMonitor page change" 
    $balloon.Visible = $true 
    $balloon.ShowBalloonTip(5000)
    exit
    
     

    Last edit: Glenn 2020-03-02
  • Morten MacFly

    Morten MacFly - 2023-06-23

    Additional note: Meanwhile, WebChangeMonitor supports to setup other types of tool tips (like balloon styled tips) natively via the settings - on platforms that support that.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.