Question:
I have a script that executes a .WAV file via ExecuteExternalApp method. For each active alarm, the executable command wmplayer.exe is displayed in the task manager, consuming more memory each time the alarm becomes active and the script is executed. Why does this happen?
Solution:
This happens because ExecuteExternalApp method sends Windows a command to execute the .WAV file with the default program for this type of file; if the default programs is Windows Media Player, this resource will be consumed due to its script.
To fix this, use PlaySound function instead; then, the sound file will be executed directly by the Viewer, and not by Windows Media Player.