Community Discussions and Support
action "play a sound" not working

I found the reason:
Mercury is RunAs different user on my system. Two users cannot access the sound system simultaneously ("Another application is playing audio. You can either interrupt the application or wait until it is done. Then try using Sound Recorder again.").

So it's neither a bug in M/32 nor that common file formats wouldn't work in M/32.
Just for the record: A possible workaround was to Run a program with the parameter C:\WINDOWS\system32\runas.exe /savecred /user:[LoggedOnUser] "C:\WINDOWS\system32\sndrec32.exe /PLAY \"C:\MERCURY\notify.wav\" /CLOSE"
or such. I did not test that out though as a system monitoring is running on that server anyway where I just add a log file test for system.log.

 

 HTH, Rainer

 

P.S. Happy new year [D] !

<p>I found the reason: Mercury is RunAs different user on my system. Two users cannot access the sound system simultaneously ("<i>Another application is playing audio. You can either interrupt the application or wait until it is done. Then try using Sound Recorder again.</i>").</p><p><b>So it's neither a bug in M/32 nor that common file formats wouldn't work in M/32.</b> Just for the record: A possible workaround was to <i>Run a program </i>with the parameter <i>C:\WINDOWS\system32\runas.exe /savecred /user:[LoggedOnUser] "C:\WINDOWS\system32\sndrec32.exe /PLAY \"C:\MERCURY\notify.wav\" /CLOSE"</i> or such. I did not test that out though as a system monitoring is running on that server anyway where I just add a log file test for system.log.</p><p> </p><p> HTH, Rainer</p><p> </p><p>P.S. Happy new year [D] ! </p>

Hi,

my RULES.MER looks like this:
Mercury Global Rules
Always PlaySound "C:\\MERCURY\\notify.wav"

When a mail is processed the file is opened by mercury.exe (M/32 4.80), nevertheless no sound is played. As help doesn't even mention that action (a search function is eagerly missing in help system, BTW) the question to the community:
Is a sound played on your system? If so: Which format has that sound file?


Thank you,
Rainer

P.S. Tried
- Uncompressed 16-bit PCM audio, 22.05 kHz, stereo    <-- typical Windows wav file, delivered with WinXP
- Uncompressed 16-bit PCM audio, 22.05 kHz, mono    <-- typical Windows wav file, delivered with WinXP
- MPEG 2 Audio, Layer 3 (MP3), 22.05 kHz, mono, 131 kBps    <-- rule for this: Always PlaySound "C:\\MERCURY\\notify.mp3"

P.P.S. Yes, there is a sound card on board [;)]. And yes, all 3 files are played just fine by WMP on the server in question.

&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;my &lt;i&gt;RULES.MER&lt;/i&gt; looks like this: &lt;i&gt;Mercury Global Rules Always PlaySound &quot;C:\\MERCURY\\notify.wav&quot; &lt;/i&gt;&lt;/p&gt;&lt;p&gt;When a mail is processed the file is opened by mercury.exe (M/32 4.80), nevertheless no sound is played. As help doesn&#039;t even mention that action (a &lt;b&gt;search&lt;/b&gt; function is eagerly missing in help system, BTW) the question to the community: &lt;b&gt;Is a sound played on your system?&lt;/b&gt; If so: Which format has that sound file?&lt;/p&gt;&lt;p&gt; Thank you, Rainer P.S. Tried - Uncompressed 16-bit PCM audio, 22.05 kHz, stereo&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;-- typical Windows wav file, delivered with WinXP - Uncompressed 16-bit PCM audio, 22.05 kHz, mono&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;-- typical Windows wav file, delivered with WinXP - MPEG 2 Audio, Layer 3 (MP3), 22.05 kHz, mono, 131 kBps&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;-- rule for this: &lt;i&gt;Always PlaySound &quot;C:\\MERCURY\\notify.mp3&quot;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;P.P.S. Yes, there is a sound card on board&amp;nbsp;[;)]. And yes, all 3 files are played just fine by WMP on the server in question. &lt;/p&gt;
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft