How to play audio with new version?

Since a few years Chrome will not play audio files unless the user has at least clicked once in the document.

But with XClick you can simulate such a click :wink: The macro below is the same audio code as before, plus a required click into the website.

{
  "Name": "play audio",
  "CreationDate": "2023-6-16",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://ui.vision/",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "pause",
      "Target": "2000",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "XClick",
      "Target": "11,12",
      "Value": "",
      "Description": "Click somewhere. This interaction is required to play sound"
    },
    {
      "Command": "pause",
      "Target": "2000",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "executeScript",
      "Target": "var audio = new Audio('https://www2.cs.uic.edu/~i101/SoundFiles/BabyElephantWalk60.wav');audio.play()",
      "Value": "",
      "Description": "Play audio file"
    }
  ]
}