Add a Send Beep command

I’d like to see the ability to send a beep, if possible. There are times when I need to be alerted to look at the screen to see something.

Yes it’s possibile i use regulary alert in my macro that play sound in case of error and put in pause the macro to alert the user.

On google library there are a large amount of sounds to choice.

{
  "Name": "Play_Sound",
  "CreationDate": "2020-3-24",
  "Commands": [
    {
      "Command": "executeScript",
      "Target": "var audio = new Audio('https://actions.google.com/sounds/v1/alarms/alarm_clock.ogg');audio.play();",
      "Value": ""
    }
  ]
}
1 Like

See also Any way to use an audiobell - #3 by Plankton

I use the native Windows balloon notification so you get the sound but it also persists in your notification center. I use XRun to trigger a PowerShell script which is only 9 LOC:

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 = 'Text Here '
$balloon.BalloonTipTitle = "Title Here" 
$balloon.Visible = $true 
$balloon.ShowBalloonTip(5000)