I have added background music to my project. One of my buttons opens up a virtual tour that is located within the project's CD via a seperate program. How can I get the project's background music to mute when the virtual tour program runs, and then unmute when the user closes the virtual tour?
Background Music
Collapse
X
-
Originally posted by brohan View PostI have added background music to my project. One of my buttons opens up a virtual tour that is located within the project's CD via a seperate program. How can I get the project's background music to mute when the virtual tour program runs, and then unmute when the user closes the virtual tour?
Place Audio.Pause(5) and Page.Timer(2000) before or after calling the virtual Tour ,exe file - this will pause the background audio file and start the page timer.
'On timer' from the page that called the executable, you can use Windows.EnumerateProcesses() to determine if the virtual tour program is still running. When it's no longer running use Audio.Play(5) to continue the background music and stop the page timer.
That's a little sketchy but should give you the idea. hth
-
-
Originally posted by brohan View PostThanks for the info. I am a brand new user, so it is a little sketchy for me, could you be a little more precise please? I really do appreciate the help.
Take a look at the example, clean it up for your purposes, and post back with any questions. hthAttached Files
Comment
-
-
Again, thank you very much. I was able to add what you had in that app into my own, and of course it worked perfectly when loading the calculator progam into my app where I want to load another program, so now I just need to change the program to open.
I really appreciate this!
Comment
-
Comment