Announcement

Collapse
No announcement yet.

Window bring to front

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

  • Window bring to front

    ok when a user clicks on a button I have it set to open a PDF file. But sometimes the PDF ends up behind the menu window not to be seen. I tried to figure out that Window>bring to front command but cant get it working. How do I know what to put in the name of the window I want to have in front? The file opens in acrobat, but cant figure out how what to put in the %hwnd% spot. %browserhwnd%?
    %acrobathwnd%? %HELPMEPLEASE%

    Thanks for being specific for a dummy!

  • #2
    Re: Window bring to front

    Hi

    The Window Title info would be the text that appears in the window's title bar [the program name followed by the document name].

    ie: if you open notepad as a new, blank document and take a look at the window title, it says Untitled - Notepad ... so you would put Untitled - Notepad in there.

    In your case it would be something like Acrobat reader - NameOfFile

    Hope this helps
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

    Comment


    • #3
      Re: Window bring to front

      ok thanks, but does the Hwnd still have to be intit? The file name has spaces in it and wont accept it so I will have to change the names, but when the file open this is what is along top.
      Acrobat Reader - DomeLT.pdf
      SO, do I type in the space for bring to front this: %AcrobatReader-DomeLT.pdf% or %AcrobatReader-DomeLT.pdfHwnd% ? None of them worked, but maybe I am not following you?
      There a so many variations it can be. NONE worked for me so far. %AcrobatReader-DOMELT.pdfHWnd% NOPE, %AcrobatReader-[DOMELT.pdf]HWnd% Nope, %AcrobatReader-DOMELT.pdf% NOPE
      Sorry to being dense

      Comment


      • #4
        Re: Window bring to front

        You first have to find the window and store the hWnd value for that window in a variable. For this you would use Window.Find
        Next you use the variable as the window you want to bring to the front.

        Like so:

        %hWnd% = Window.Find ("Acrobat Reader - [DomeLT.pdf]")
        Window.BringToFront (%hWnd%)

        It will work with spaces in the filename too. Additionally, ensure you enter it EXACTLY as it appears in the title bar, including the [ ] etc.
        -
        = Derek
        ["All glory comes from daring to begin" - fortune cookie]

        Comment


        • #5
          Re: Window bring to front

          WHOOO-HOOOO!!! WHOOO-HOOOO!!! WHOOO-HOOOO!!!

          YOU da-man!!!

          Thanks X one million = Thanks a million!
          Really, it has haunted me most of the day. Just couldnt get it right.
          I only needed one example like that in the HELP file. It is so UNhelpful. Hard to understand. Thanks for spelling it out for this idiot!

          TY TY TY TY TY

          Comment


          • #6
            Re: Window bring to front

            Hi Dmitris. To be fair and objective our help docs are actually very good when compared to help docs for comparable products. You can't imagine what a challenge it is to put together meaningful help docs for an app of this nature, there's just sooooo many possibilities. You can be assured we invest lots of time and resources into making those help docs as helpful as we possibly can, we're not one of those companies who just ignores that sort of thing... We have a very talented full time writer and he busts his back on those docs. It's one of those things I think where you can't even imagine what a huge and difficult task it is until you see it from the other side, one could do nothing but write examples all year long and still not cover everything AMS is capable of...

            Anyhow I invite you to come here first next time instead of sweating it out all day. Lots of awesome people here like Derek who can help eliminate some of the questions... This forum is a valuable extension to the help docs. I'm sure you agree it's pointless trying to read yor mind when creating help examples so the best we can do is make ourselves as accessible as possible here to provide custom examples to those who ask...

            Corey Milner
            Creative Director, Indigo Rose Software

            Comment


            • #7
              Re: Window bring to front

              Yes, I guess I shouldnt be critical. But a person like me that wants to use this product and has no idea of how to do any programming gets lost easily in it.
              Brings a specific window to the front of the desktop (in front of all other windows).

              Action ID:
              Action Category:
              Action List Syntax:
              53
              Window
              Window.BringToFront (<<HWND>>)


              Settings
              hWnd:
              An integer value that represents the "handle" of the window on the user's desktop that will be brought to the front. The hWnd value can be determined using a "Window - Find" action, or the built-in variable %MenuHWnd% (which is the hWnd value for the AutoPlay application's window) can be used.


              Thats the extent of what I found and might as well have been in the language of someone from Mars because I had no clue as to what it says. But maybe it IS useful to someone else. If there was an example it would be more helpful than all the words you could write.
              Sorry for the critique but thanks to you and all who help others like me!! WE NEED IT!! (Or at least I do)

              Comment


              • #8
                Re: Window bring to front

                Critique is healthy, no probs... I'm sure the next version of AMS will feature some excellent improvements. In the meanwhile please think of this forum as a place to get quick answers to your pressing questions... Post here as soon as something arises and chances are you might get an answer in less time than it takes to figure out on your own... No question is too small to post.

                Corey Milner
                Creative Director, Indigo Rose Software

                Comment


                • #9
                  Re: Window bring to front

                  Kewl

                  Thanks again!!!

                  Comment

                  Working...
                  X