KB-56685: When executing a .WAV file for each active alarm, wmplayer.exe is displayed in the task manager.

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.

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *