Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Activating results window from Do file.

    STATA Version 13.0/MP
    Environment: Windows

    Hello,

    I often have multiple applications and STATA sessions open at the same time.
    I generally run my syntax from within Do files (using the run button) line by line while writing/editing.

    I was wondering if there is a command or keyboard short cut from the Do file which will activate the console which the Do file has run to and bring it to the front of my screen so I can see the results window?
    I am aware that I can toggle applications on the task bar in Windows, in order of last clicked, but often the console is not the last clicked.
    So if someone knows a short cut key from the Do file or a syntax command it would be great.

    Thanks

    Mel


  • #2
    I've searched the same a while ago with no positive result. I would usually assign white background (standard color scheme) for the tasks that run for long time in the background, while setting classic theme for the one I am using interactively or while editing do files. In that case the search is pretty obvious. Using two monitors often helps.

    There is a command
    window manage forward result
    which deals with the results window within the same Stata, but it does not solve the problem AFAIK.


    Best, Sergiy

    Comment


    • #3
      Hi everyone,
      Originally posted by Sergiy Radyakin View Post
      [...]
      There is a command
      window manage forward result
      which deals with the results window within the same Stata, but it does not solve the problem AFAIK.
      [...]
      yes, it does, Sergiy. It solves exactly what Mel describes: Put
      Code:
      window manage forward results
      at the end of your do-file, and the results window corresponding to the do-file will pop up in front of all others.

      Or am I misunderstanding the original request? I thought this exactly was the question.

      Regards
      Bela

      Comment


      • #4
        Yes, Daniel, the expectation is that the window will come out forward, but it does not. There is no reason for operating system to suddenly bring the Stata window forward while you are typing something in Word. (although some applications trick it out and manage to popup on top of everything, this is a big no-no). So it only works if (in Windows) the Stata window that is running the program is the active application running in a non-minimized state. If you minimize Stata, you will see it's icon flashing in the task bar. And if the Stata is running in non-minimized state, but is not active application (say you've switched to another application), then nothing happens at all.

        Best, Sergiy Radyakin

        Comment


        • #5
          Hi Sergiy,

          I only partly agree. It's not in question that any other program should be capable of bringing a Stata window to in front of others (and i agree, it should not), but Stata (via the do-file editor) itself should be capable of doing this its "own" windows.

          What you describe seems to be a flaw in Microsoft Windows' display manager, and it is my fault that I didn't test the command thoroughly on Windows yesterday:
          In Windows environments, as you describe, if the Stata results window has been minimized, the display manager obviously does not provide a way for Stata to un-minimize the window. The command just puts the window to "alert" state, making it flashing in the task bar.

          Note that, however, other operating systems' display managers provide this feature. Under Ubuntu Linux (14.04, default desktop installation), window manage forward is capable to un-minimize (even if it is on any other virtual desktop) Stata's result window and bring it up front. I have no Mac to test the behaviour in Mac OS, but would expect the same behaviour there.

          Regards
          Bela
          Last edited by Daniel Bela; 11 Sep 2014, 03:18. Reason: typo corrected

          Comment


          • #6
            Thank you for your responses . The code: window manage forward results. Was exactly what I was looking for.
            Regards

            Mel

            Comment

            Working...
            X