I have a query that plays a sound on a new alarm and it works great.
alerts = system.alert.queryAlertStatus(activeAndUnacked=1)
if alerts.rowCount > 0:
system.util.execute([“C:\sndrec32”, “/play”, “/close”, “/embedding”, “c:\alarm.wav”])
I would like to modify it so that I can play different sounds based on alarm severity. I have created 3 test tags with different alarm severities and six queries. The queries are Active and Severity =4, Active and Severity =3, Active and Severity =2, Severity =4, Severity =3 and Severity =2. The problem is that result is the same number from all six queries and I don’t see my mistake.