Cant get this to work. Help.

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • wanderer
    Forum Member
    • Feb 2002
    • 6

    Cant get this to work. Help.

    On one page...
    1) I hide 3 text objects.
    2) I launch an MP3 file.
    3 I execute an external .exe file (wait for return is checked) that brings up a small .gif viewer.
    The viewer automatically closes after 5 seconds.
    4) (from the same page) I want to "show"
    one of the text objects... go back out to the viewer and come back and show another text object, back to the viewer, and back to show the 3rd text object.
    ------------
    my code:
    Hide Object TextObject 1
    Hide Object TextObject 2
    Hide Object TextObject 3
    Play MP3 File %SrcDrv%\narraton.mp3
    ExecuteProgram %SrcDrv%\viewer.exe (parameter sent)
    Show Object TextObject 1
    ExecuteProgram %SrcDrv%\viewer.exe (parameter sent)
    Show Object TextObject 2
    ExecuteProgram %SrcDrv%\viewer.exe (parameter sent)
    Show Object TextObject 3
    -----------------


    What is happening is...
    the .mp3 never starts at all and the first page never shows. Only the .gif viewer starts
    and when it ends, the page shows with the text object.
    It seems like the "execute" statement takes priority over the statements above it.
    ??
    What would the correct sequence be?


    [This message has been edited by wanderer (edited 02-09-2002).]
  • Mark
    Indigo Rose Staff Member
    • Jun 2000
    • 1945

    #2
    Re: Cant get this to work. Help.

    Hi,

    Are these actions occurring on Page Open? Or on some other event?

    If you remove these actions:
    -----------
    ExecuteProgram %SrcDrv%\viewer.exe (parameter sent)
    Show Object TextObject 1
    ExecuteProgram %SrcDrv%\viewer.exe (parameter sent)
    Show Object TextObject 2
    ExecuteProgram %SrcDrv%\viewer.exe (parameter sent)
    Show Object TextObject 3
    -----------
    Does the MP3 play properly? If it does try adding these actions one by one and see where the problem starts.

    Do each of the Execute Program actions fire? Or is it the first one or last one only?

    mark.

    [This message has been edited by Mark (edited 02-11-2002).]
    MSI Factory The Next Generation Intelligent Setup Builder

    Comment

    • wanderer
      Forum Member
      • Feb 2002
      • 6

      #3
      Re: Cant get this to work. Help.


      on page open.


      Here's a simplified arrangement.

      Page 1
      On page open:

      HideObject ImageObject1
      PlayMp3 %Src%\my.mp3
      ExecuteProgram %Src%\timer.exe (wait) (5 sec timer)
      ShowObject ImageObject1

      The first thing I see is the screen for the timer. Then I see page 1 with the image showing. The MP3 never plays and I never see the page without the image.
      The MP3 plays howerver if it is alone in the action without the timer.

      Comment

      Working...
      X