But my existing code is PowerShell because of the sound.
I have no idea whether this works in batch, too...
the DIY Nowifier for Claws Mail is already running, but I´d like to add features:
1. The amount of new incoming Emails
2. Subject + Sender
A picture can show more than any spoken word. So here we are with 3 of them:
A = What I got already when a new Email arrives
B = What I want...
C = The register card at Claws Mail with the existing code inserted already
This is the code:
How it works:
Code: Select all
powershell Get-Content c:\text1.txt; -c (New-Object Media.SoundPlayer 'C:\PROGRA~2\CLAWSM~1\lib\CLAWS-~1\Sound\9.wav').PlaySync();
1. The PowerShell opens
2. A certain sound is playing
3. The sound stops / has finished and the Powershell closes again
4. All this can be used ( I use it that way... ) for instant when a video is on the monitor.
The movie stops as soon as the PowerShell window appears and when PS disappears the movie
keeps on running.
For me...a perfect solution, but I´d like to see, what is the Email about and from whom.
The autors of Claws Mail gives the hind ( see the red marked area on picture C ), that "%D"
is for the amount of incoming EMails, but I have no idea how to put it into the script.
Please give me a helping hand...