I want to set up a rule which will notify me if there are messages in a mailbox without downloading those messages. I have set up a ruleset like this :-
Yahoo (Mail Check)
Always Call "SOUND:"
Always Exit ""
Label "SOUND:"
Always PlaySound "C:\\PMAIL\\Programs\\RESOURCE\\Yahoo! email Alert.wav"
Always Return ""
I notice that when the rule is triggered, the sound is only played once, irrespective of how many messages are present, unless there are none in which case the rule is not triggered. This is fine for me, but I was interested in what PlaySound was doing e.g. just not returning, or what? So I modified the rule to :-
Yahoo (Mail Check)
Always Call "SOUND:"
Always Dialog "OOO"
Always Exit ""
Label "SOUND:"
Always PlaySound "C:\\PMAIL\\Programs\\RESOURCE\\Yahoo! email Alert.wav"
Always Return ""
Now, when the rule is triggered and there is more than 1 email, the dialog box appears, followed by the sound, and if you wait until the sound is complete, and then click the OK button, the process is repeated, another dialog box appears followed by the sound. If, on the other hand, you click on the OK button as soon as the dialog box appears, you still see two occurrences of the dialog box, but only the sound is played only ONCE.
It seems that the playing of the sound is triggered asynchronously, and the rule carries on regardless of whether the sound is finished or not. Also, once the playing of the sound is triggered a further attempt to play sound will not be successful and ignored.
I did also try removing the Call/Return to see if the problem was caused by the Call process, so the rule became :-
Yahoo (Mail Check)
Always PlaySound "C:\\PMAIL\\Programs\\RESOURCE\\Yahoo! email Alert.wav"
Always Return ""
OR
Yahoo (Mail Check)
Always PlaySound "C:\\PMAIL\\Programs\\RESOURCE\\Yahoo! email Alert.wav"
Always Dialog "OOO"
Always Return ""
The results were the same as when using the Call process.
Is this how the PlaySound action works or is intended to work? It is perhaps confusing when debugging a rule and Playsound is involved. You probably need to replace the Playsound action with a diagnostic Dialog box action to confirm what is happening.
<p>I want to set up a rule which will notify me if there are messages in a mailbox without downloading those messages. I have set up a ruleset like this :-</p><p>Yahoo (Mail Check)
Always Call "SOUND:"
Always Exit ""
Label "SOUND:"
Always PlaySound "C:\\PMAIL\\Programs\\RESOURCE\\Yahoo! email Alert.wav"
Always Return ""</p><p>I notice that when the rule is triggered, the&nbsp;sound is only played once, irrespective of how many messages are present, unless there are none in&nbsp;which case the rule is not triggered. This is fine for me, but I was interested in what PlaySound was doing e.g. just not returning, or what? So I modified the rule to :-</p><p>Yahoo (Mail Check)
Always Call "SOUND:"
Always Dialog "OOO"
Always Exit ""
Label "SOUND:"
Always PlaySound "C:\\PMAIL\\Programs\\RESOURCE\\Yahoo! email Alert.wav"
Always Return ""&nbsp;</p><p>&nbsp;Now, when the rule is triggered and there is more than 1 email, the dialog box appears, followed by the sound, and if you wait until the sound is complete, and then click the OK button, the process is repeated, another dialog box appears followed by the sound. If, on the other hand, you click on the OK button as soon as the dialog box appears, you still see two occurrences of the dialog box, but only the sound is played only ONCE.</p><p>It seems that the&nbsp;playing of the sound is triggered&nbsp;asynchronously, and the rule carries on regardless&nbsp;of whether the sound is finished or not. Also, once the playing of the sound is triggered a further attempt to play sound will not be successful and ignored.</p><p>I did also try removing the Call/Return to see if the problem was caused by the Call process, so the&nbsp;rule became :-</p><p>Yahoo (Mail Check)
Always PlaySound "C:\\PMAIL\\Programs\\RESOURCE\\Yahoo! email Alert.wav"
Always Return ""
</p><p>OR</p><p>Yahoo (Mail Check)
Always PlaySound "C:\\PMAIL\\Programs\\RESOURCE\\Yahoo! email Alert.wav"
Always Dialog "OOO"
Always Return ""</p><p>The results were the same as when using the Call process.&nbsp;</p><p>Is this how the PlaySound action works or is intended to work? It is perhaps confusing when debugging a rule and Playsound is involved. You probably need to replace the Playsound action with a diagnostic Dialog box action to&nbsp;confirm what is happening.</p>