11 Replies Latest reply on Nov 2, 2006 2:52 PM by Luisa Klose

    play projector on top

    Level 7
      I have a stud projector using enhancer to change screen res.
      I have live links in the DXR the stud plays.
      If a viewer has an app. open (like word) when they stick in the CD it auto
      plays on top then if they click an internet link the browser opens (changing
      res back while it's open) if they exit the browser the other app. (word) is
      on top instead of the projector.

      How can I have the projector come back on top when they close out of the
      browser?

      thanks,
      cj


        • 1. Re: play projector on top
          Luisa Klose
          I faced a similar problem several years ago and BuddyAPI did the job. As the Swiss Army knife of Xtras, BuddyAPI is a must have. Check out the list of functions - there are about 30 just for working with windows. Here's the link:

          BuddyAPI
          • 2. Re: play projector on top
            Level 7
            Luisa,
            What function did you use to address this issue?
            thanks, cj

            "Luisa Klose" <webforumsuser@macromedia.com> wrote in message
            news:ehlm9i$phf$1@forums.macromedia.com...
            >I faced a similar problem several years ago and BuddyAPI did the job. As
            >the
            > Swiss Army knife of Xtras, BuddyAPI is a must have. Check out the list of
            > functions - there are about 30 just for working with windows. Here's the
            > link:
            >
            > http://www.mods.com.au/budapi/
            >


            • 3. Re: play projector on top
              Level 7
              Stub... not stud...

              Both Director and BuddyAPI have methods for dealing with Windows. In
              Director look in Help under Core Objects > Window. You can also set a MIAW's
              type to Tool so that it is modal and stays on top. Otherwise you can do
              something like this within an enterFrame -

              if _global.myMiaw <> _player.frontWindow then
              _global.myMiaw.moveToFront()
              end if





              --
              Dave -
              Head Developer
              www.blurredistinction.com
              Adobe Community Expert
              http://www.adobe.com/communities/experts/


              • 4. Re: play projector on top
                Level 7
                Dave,
                I tried using your example below in the stub (not stud) projector.
                In the first frame I put
                on enterFrame

                if _global.myMiaw <"pti"> _player.frontWindow then
                _global.myMiaw.moveToFront()
                end if
                end

                I still had issues so in the DXR on the web link and email link buttons I
                added:

                on mouseUp
                if _global.myMiaw <"pti"> _player.frontWindow then
                _global.myMiaw.moveToFront()
                end if
                goToNetPage " http://www.website.com/", "_new"
                end

                The other windows were still on top.

                Instead I also tried adding:
                set OK = baWindowToFront(baWinHandle())
                in the same location s with the same result.

                Where am I going wrong?


                "DMennenoh **AdobeCommunityExpert**" <dave@blurredistinction.com> wrote in
                message news:ehnt12$h8j$1@forums.macromedia.com...
                > Stub... not stud...
                >
                > Both Director and BuddyAPI have methods for dealing with Windows. In
                > Director look in Help under Core Objects > Window. You can also set a
                > MIAW's type to Tool so that it is modal and stays on top. Otherwise you
                > can do something like this within an enterFrame -
                >
                > if _global.myMiaw <> _player.frontWindow then
                > _global.myMiaw.moveToFront()
                > end if
                >
                >
                >
                >
                >
                > --
                > Dave -
                > Head Developer
                > www.blurredistinction.com
                > Adobe Community Expert
                > http://www.adobe.com/communities/experts/
                >


                • 5. Re: play projector on top
                  Luisa Klose Level 1
                  CJ,

                  I looked for the source files and couldn't find them, so I did a little test with the following frame script. Let me know if it works for you.

                  • 6. Re: play projector on top
                    Level 7
                    Luisa,
                    This works fine for the browser but I have noticed if a user has word open
                    and (I assume) if they have word set as their email editor and I have a link
                    to email using:

                    global gBrowserWindow

                    on mouseUp
                    if baOpenURL("mailto:you@youremail.com?subject=Tell me more you",
                    "maximised") > 32 then
                    gBrowserWindow = baNextActiveWindow(0)
                    end if
                    end

                    Outlook opens behind the projector.

                    If word isn't open it opens on top.

                    How can I have outlook open on top all the time?

                    thanks,
                    cj
                    "Luisa Klose" <webforumsuser@macromedia.com> wrote in message
                    news:ehoet9$a79$1@forums.macromedia.com...
                    > CJ,
                    >
                    > I looked for the source files and couldn't find them, so I did a little
                    > test
                    > with the following frame script. Let me know if it works for you.
                    >
                    >
                    >
                    > global gBrowserWindow
                    >
                    > on mouseDown
                    > if baOpenFile("C:\files\file.html", "maximised") > 32 then
                    > gBrowserWindow = baNextActiveWindow(0)
                    > end if
                    > end
                    >
                    > on enterFrame
                    > if gBrowserWindow <> VOID then
                    > if baWindowExists(gBrowserWindow) = 0 then
                    > gBrowserWindow = VOID
                    > baWindowToFront(baWinHandle())
                    > end if
                    > end if
                    > end
                    >
                    > on exitFrame
                    > go the frame
                    > end
                    >


                    • 7. Re: play projector on top
                      Luisa Klose Level 1
                      CJ,

                      I would try:

                      • 8. Re: play projector on top
                        Level 7
                        Luisa,
                        I still get the same problem. The browser on the web link will open in
                        front but the email client (outlook) opens in back.

                        I do not understand the code. What does the ">32" mean?
                        Is it because oulook is not a "browserWindow"? What might it be?

                        Any suggestions would be greatly appreciated.
                        cj


                        "Luisa Klose" <webforumsuser@macromedia.com> wrote in message
                        news:ehtgq9$hon$1@forums.macromedia.com...
                        > CJ,
                        >
                        > I would try:
                        >
                        >
                        >
                        > on mouseDown
                        > if baOpenURL("mailto:you@youremail.com?subject=Tell me more you",
                        > "maximised") > 32 then
                        > gBrowserWindow = baNextActiveWindow(0)
                        > baWindowToFront(gBrowserWindow)
                        > end if
                        > end
                        >
                        > or
                        >
                        > on mouseDown
                        > if baOpenURL("mailto:you@youremail.com?subject=Tell me more you",
                        > "maximised") > 32 then
                        > gBrowserWindow = baNextActiveWindow(0)
                        > baSetWindowDepth(gBrowserWindow, 1)
                        > end if
                        > end
                        >


                        • 9. Re: play projector on top
                          Level 7
                          Luisa,
                          I have tried every ba function I can think of. I have come to the
                          conclusion there is no way to force outlook to the top if word is set as the
                          email editor and word is open when the projector starts. I know this
                          scenario will only occur part of the time but since I know about it I cannot
                          leave it that way. I gave up and just opened a browser window to the
                          client's contact web page. If you then click on the email button from the
                          browser outlook appears on the top.

                          If I am missing something and someone has a suggestion I would love to hear
                          some options.

                          thanks for your help.

                          cj

                          "Chris J" <joker@renderforge.com> wrote in message
                          news:eidgs5$g5u$1@forums.macromedia.com...
                          > Luisa,
                          > I still get the same problem. The browser on the web link will open in
                          > front but the email client (outlook) opens in back.
                          >
                          > I do not understand the code. What does the ">32" mean?
                          > Is it because oulook is not a "browserWindow"? What might it be?
                          >
                          > Any suggestions would be greatly appreciated.
                          > cj
                          >
                          >
                          > "Luisa Klose" <webforumsuser@macromedia.com> wrote in message
                          > news:ehtgq9$hon$1@forums.macromedia.com...
                          >> CJ,
                          >>
                          >> I would try:
                          >>
                          >>
                          >>
                          >> on mouseDown
                          >> if baOpenURL("mailto:you@youremail.com?subject=Tell me more you",
                          >> "maximised") > 32 then
                          >> gBrowserWindow = baNextActiveWindow(0)
                          >> baWindowToFront(gBrowserWindow)
                          >> end if
                          >> end
                          >>
                          >> or
                          >>
                          >> on mouseDown
                          >> if baOpenURL("mailto:you@youremail.com?subject=Tell me more you",
                          >> "maximised") > 32 then
                          >> gBrowserWindow = baNextActiveWindow(0)
                          >> baSetWindowDepth(gBrowserWindow, 1)
                          >> end if
                          >> end
                          >>
                          >
                          >


                          • 10. Re: play projector on top
                            Luisa Klose Level 1
                            CJ,

                            I assumed that you had at least consulted the BuddyAPI help, so I didn't bother to question the way you were using the baOpenURL command. The baOpenFile command returns an error code numbered from 0-32. If it returns anything but the number 32, it means an error occurred. See the help file for the list of possible errors.

                            The baOpenURL command returns 1 if it's successful or 0 if it's not. So, taking that into account, and assuming that "mailto:you@youremail.com?subject=Tell me more you" is a valid URL, the code should look like the following. Let me know if it works.
                            • 11. Re: play projector on top
                              Luisa Klose Level 1
                              CJ,

                              Considering that you're using baOpenURL, here's the code I would use, including the error checking. Error checking with baOpenURL is simple since it either works or it doesn't. By the way, gBrowserWindow is just the name I chose for the global variable.