Scripting windows 7 I need to loop continously from a windows media player play list and when tje playlist is complete to a presentation and then back to the Playlist when the presentation is complete.
Related
im working on a windows app that needs to "hear" the desktop's audio, so the user runs it in the background and plays a game for example, the application would receive the sounds of that game, kind of like a screen recorder, but for audio only
How to use powershell to autoplay a folder of mp3 files using Windows Media Player on Windows 7 startup. I figure that there are two aspects: 1) the script must run automatically when Windows starts up 2) the script must call Media Player to open the folder and play the files therein
Perhaps you could make a playlist from that folder in Windows Media Player.
Then you could call windows media player with a commandline switch, which tells it to open and play a certain playlist. You can find some information on commandline switches for WMP here:
[http://www.tech-recipes.com/rx/1389/windows-media-player-wmp-11-command-line-options/]
When that is done, you would create a scheduled job, to fire your WMP script every time you log on.
Information for that part can be found here:
[https://technet.microsoft.com/en-us/library/cc748993(v=ws.11).aspx]
I'm creating a windows app , windows 8.1 app, using visual studio 2013.
i want to add a background music to it.
how to add it?
Do you mean music while the app is playing or music running when the app is in the background?
For both you'll set up a MediaElement running the music file you want to play.
Since the MediaElement will only play while it's in the visual tree you need to play a small trick to keep it running through all of the app's pages: instead of running the app out of a top-level page, create a root page with the MediaElement and a child frame, then run the app's pages out of the child frame. See my blog entry Frame of reference: keeping the music playing across pages for more details.
To play music when the app is in the background you'll need to declare the background audio task, set the MediaElement to BackgroundCapableMedia, and wire up SystemMediaTransportControls. See the How to play audio in the background documentation on MSDN for details.
I would like to trigger a script on my computer (Windows 7 Professional SP1 64bit) when a particular event occurs (event 'X'). There is already an application on my computer which plays a 1 second chime (.wav sound file) whenever event X occurs. Therefore, I would like to trigger my script whenever this sound file is being played.
How can I trigger a script to run when a particular sound file is played?
I'm trying to get an application which ran okay on XP to run properly on Windows 7 (this is not something I wrote - I'm helping a friend.)
It was able to play audio on XP but cannot on Windows 7 - nothing is heard. Have exhausted a search and check of all settings in Windows 7 as regards audio (have spent many hours searching and reading.)
There is no entry in the Windows 7 Volume Mixer for the application at any time while it is running.
By playing with some other applications I've found that it seems that an application is not added to the Mixer until it actually creates a sound but I've found at least one program which is added to the Mixer right when the program starts and before it has played any sounds.
Is there an API which allows an application to "register" itself with the Windows 7 Volume Mixer so that an entry for it appears in the Mixer even though it has not yet produced any sounds?
According to this blog post, the audio subsystem keeps track of PIDs that play audio and the volume mixer is able to access this list. It is possible to change the name displayed in SndVol with IAudioSessionControl, so maybe that alone is enough for it to be "registered"
An app slider is added to the mixer when an audio session is created. There are two things that can cause an audio session to be created: First off, when an audio stream created by the app transitions to the "start" state. The other case is when an application manipulates the audio volume using the IAudioSessionControl interface.