Announcement

Collapse
No announcement yet.

Adobe 6

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adobe 6

    I have browser objects that are loading pdf files (with a button). If the user has Adobe "6" Reader and I merely "hide" the object, Adobe 6 has a recurring message that pops up saying something to the effect that "it's still using the browser and would you like to close it". This is annoying. Is there a way (besides loading a new web browser) to actually "close" this window instead of "hiding' it? Or better yet, to "dump" the pdf file upon hiding? Any suggestions would be great.
    Regards,

    -Ron

    Music | Video | Pictures

  • #2
    Re: Adobe 6

    The browser is being closed when you hide the object...that's why Acrobat is presenting that message, because the browser is closing.

    You could maybe try loading a different (maybe a blank?) web page into the browser before you hide it.
    --[[ Indigo Rose Software Developer ]]

    Comment


    • #3
      Re: Adobe 6

      Well Lorne, I swear I was doing that (already made a blank.htm) right as I got your post!! Thanks for the reply. I'll let you know if this works. So far, as I hide this object and load another I'm getting "can't find the object". May have to put a "sleep" in there, but was hoping for a better workaround. Still messing with it.
      Regards,

      -Ron

      Music | Video | Pictures

      Comment


      • #4
        Re: Adobe 6

        In case this helps anyone else, I figured out what was going on. Adobe 6 Reader (once executed) stays in your Task Manager as a process; why I don't know - I hate when programs take over your computer like that!! Adobe 5.1 does not do this. Anyway, I'm able to "jump thru hoops" with an if statement to terminate the process. This sux, cause I have to add it to a bunch of buttons, but it seems to work OK.
        Regards,

        -Ron

        Music | Video | Pictures

        Comment


        • #5
          Re: Adobe 6

          Acrobat is a real monkey rhosk...

          Corey Milner
          Creative Director, Indigo Rose Software

          Comment


          • #6
            Re: Adobe 6

            OK, new problem (have a deadline here). Can someone please tell me why this code doesn't work exactly?

            %hWnd% = ""
            %hWnd% = Window.Find ("Adobe Reader")
            IF (%hWnd% <>"")
            Window.Close ("%hWnd%", TerminateProcess)
            ELSE
            RETURN
            END IF
            Page.ShowObject ("WebBrowser1")

            If the process is there, the code works great. However, if the process is not there, I get an error saying it can't find the window?? And it doesn't continue and show my "WebBrowser1"? Oy, I may have been at this too long.
            Regards,

            -Ron

            Music | Video | Pictures

            Comment


            • #7
              Re: Adobe 6

              In your code, if the process is not there, you are telling it to RETURN, therefore no other actions will be performed and your Page.ShowObject action will not be executed. In this case, I don't think you need the RETURN, because it sounds like you want to show the object regardless. Is that correct?

              Comment


              • #8
                Re: Adobe 6

                Ok, I understand that, but why; if the window is not present, does it alert me if I have the if statement there (to return)? Is there something else I should be using here? And if I don't use RETURN, what is my else (just don't want it to do anything [ELSE]? I want it to terminate that process only if it exists. Thanks for the quick response.
                Regards,

                -Ron

                Music | Video | Pictures

                Comment


                • #9
                  Re: Adobe 6

                  Go to your Window.Find action's properties dialog. Click the On Error tab. There you will see that you can set the error notification. In this case, you will probably just want to set it to "None".

                  I believe you want to remove the ELSE and RETURN in your control structure and instead use an END IF, because it sounds like all you want to do is execute the Window.Close action if it's found. Either way you want to execute the Page.ShowObject action.

                  Comment


                  • #10
                    Re: Adobe 6

                    I can't believe it was that easy. :o Thanks much!
                    Regards,

                    -Ron

                    Music | Video | Pictures

                    Comment

                    Working...
                    X