Starting program in Display 2 ?

Page 1 of 3 123 LastLast

  1. Posts : 11
    Win10
       #1

    Starting program in Display 2 ?


    I am setting up my computer (Win10 latest update) to run programs for my observatory.
    I have a main higher resolution monitor as Display 1 and a smaller monitor (less resolution) set up as display 2.
    The idea is to have the main programs that I want to run the main processing software and the smaller monitor to run control software for the telescope.
    What I have to do now is start the control software and drag it over to the smaller monitor (display 2).
    My question is...

    Is there a way to have the control software start in display 2 and the main software start in display 1?

    I have tried to designate display 2 as my main display but then all the programs start in display 2.

    Maybe there is a way to modify the batch file I have written to start the control software to only start in display 2?
    Help very much appreciated.

    Greg
      My Computer


  2. Posts : 23,413
    Win 10 Home ♦♦♦19045.4355 (x64) [22H2]
       #2

    Hello @ GregM1951 and welcome to Ten Forums.


    Generally (without batch file assistance) a program will "open" on whichever monitor it was last on when it was "closed".
    I use VLC media player to watch movies on my TV (2nd display). As long as I always "close" VLC on the TV... it always "opens" there, the next time I start a movie from my hard drive.

    Conversely, if I close VLC on display 1, the next time I open it... it opens on display 1.

    I don't know if this will help you, but it's built into Windows anyway. Maybe you can find a way to use this function of Windows.



    Display 1 (DELL monitor), is set as my primary... always.
      My Computer


  3. Posts : 11
    Win10
    Thread Starter
       #3

    I was hoping it would work the way you suggest, but I just can't get that to happen.

    My batch file actually starts 4 sub-programs all made by the same company.
    The batch file starts all 4 of those sub-programs just not on the right display.

    Is there a way to modify my batch file (or write a new one) that designates which display to start on?

    I have a second control program that begins to start on display 1, but when fully loaded mysteriously moves over to display 2?
    That's the way I want it to work.
      My Computer


  4. Posts : 23,413
    Win 10 Home ♦♦♦19045.4355 (x64) [22H2]
       #4

    GregM1951 said:
    I was hoping it would work the way you suggest, but I just can't get that to happen.

    My batch file actually starts 4 sub-programs all made by the same company.
    The batch file starts all 4 of those sub-programs just not on the right display.

    Is there a way to modify my batch file (or write a new one) that designates which display to start on?

    I have a second control program that begins to start on display 1, but when fully loaded mysteriously moves over to display 2?
    That's the way I want it to work.


    I think the trick would be to modify your batch file to determine which display the programs, "close" on.
    Then Windows will do the rest, as I mentioned above.

    Or make a 2nd batch file.... one to start your programs where ever Windows wants to start them, and a 2nd one to make sure they "close" on the proper display.
    Then the next time you run your programs, they'll naturally, start on the correct monitor.


    We know for a fact, that Windows always opens a program on whichever monitor it was on when it was... "closed".
    You need to construct your batch file(s), to take that default Windows behavior, into consideration.

    I can't really be more specific than that. My last serious coding days were... 40 years ago.
      My Computer


  5. Posts : 11
    Win10
    Thread Starter
       #5

    Me too.
    And the answer you propose is exactly the way I want it to work.
    If there is a tutorial on batch files I would sure like to see it.
      My Computer


  6. Posts : 811
    Windows 7
       #6

    I would look at Nirsoft's MultiMonitorTool, which can move a named process or window name to a specific monitor.
    Then your script would be something like:

    MainApp.exe
    ControlApp.exe
    MultiMonitorTool.exe /MoveWindow Secondary Process "ControlApp.exe"
      My Computer


  7. Posts : 11
    Win10
    Thread Starter
       #7

    I'll have a look.
    Thanks
    G
      My Computer


  8. Posts : 16,977
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #8

    I agree with garlin.

    I do wonder if it is your batch file that has been creating all these difficulties for you, if the programs are losing their own memories and just opening on the monitor that the batch file runs on.
    You can test that idea by manually starting the programs instead,
    putting them on the monitors you want,
    closing them,
    starting them manually again.
    Do they open in their previous monitors this way?


    Denis
      My Computer


  9. Posts : 11
    Win10
    Thread Starter
       #9

    I just tried that and it still has the same problem.
    There is a way I can have the main program start and have it start the sub-programs.
    I tried that and the main program does start the subprograms automatically, but it still starts them in display 1.
      My Computer


  10. Posts : 16,977
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #10

    Given that it is specialist software, do you have a support arrangement that allows you to ask the software publishers?

    Perhaps they included something that makes the software behave in a non-standard way?
    Perhaps they never considered multi-monitor use of the software?


    Denis
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:22.
Find Us




Windows 10 Forums