PowerPoint - Macro launches .exe, but pauses presentation

I have developed a PowerPoint presentation that when the presentation is running, a macro is executed on each slide. (I used this guide here... https://www.experts-exchange.com/articles/17410/Initializing-PowerPoint-Events-with-VBA-and-Ribbon-XML.html)

The macro checks if a .jpg file exists, and if it does, the macro jumps the presentation to specific slide that use the .jpg as a linked image.

An external application creates the .jpg file. Once the presentation has played that slide, it deletes the .jpg file.

I want to also "mute VLC player" when jumping to the slide.

I am using nircmdc.exe (http://www.nirsoft.net/utils/nircmd.html) to mute the vlc application from commandline.

My macro uses the shell command to execute the nircmdc.exe command.
    nircmdFilePath = ActivePresentation.Path & "\nircmdc.exe"
    If Len(Dir(nircmdFilePath)) > 0 Then
        Call Shell(nircmdFilePath & " muteappvolume vlc.exe 1", vbMinimizedFocus)
    End If

Open in new window

The problem is, when the command is executed, because another application opens the PowerPoint show pauses.
The show is running on an unmanned kiosk. So it's not practical to keep clicking "Resume show"

Does anyone know a way around this?
Antonio KingIT ManagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


have you tried with

vbMinimizedNoFocus ?


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Antonio KingIT ManagerAuthor Commented:
Tanks Rgonzo1971. Will give that a try.
Antonio KingIT ManagerAuthor Commented:
Thanks! that has worked a charm
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.