Looking for Program that Fixes the Layout of Windows on the Desktop


  1. Posts : 235
    Windows 10 Home
       #1

    Looking for Program that Fixes the Layout of Windows on the Desktop


    Hey everyone, I'm looking for another program that might stump you guys. I've been looking for a while but I can't seem to find anything.

    I'm looking for a program that will upon computer startup, not only open specific programs but also open them in a specific size and location.

    In other words, when I log into my Windows 10 computer, I'll have a specific Word file be exactly positioned along the left side of my monitor, all the way from the bottom to the top. It would be flush with the monitor's left side and extend exactly 3 inches to the right.

    Then I'll have a Microsoft Project file positioned along the top, coming down 5 inches from the top. It'll start from where the Word doc ends and travel all the way to the right side of the screen.

    In other words, I'll have 2 monitors with a lattice work of program files in a specific layout. It would do this automatically whenever I booted up my computer.

    Do you guys ever seen a program that does this? I promised my left nut for the other program I mentioned in another thread. If you guys could help me find a program that does this, I promise you my right nut.

    PLEASE HELP ME!! I need these programs so badly....
      My Computer


  2. Posts : 42,992
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Hi, free Autohotkey.

    A simple script with alternate lines that

    a. launches a program
    b. MOVEs the window (and optionally resizes it) using this command:
    Looking for Program that Fixes the Layout of Windows on the Desktop-1.jpg

    Have your script launch on startup - you can rt click the ahk text file and compile it to an exe if you wish.
      My Computers


  3. Posts : 235
    Windows 10 Home
    Thread Starter
       #3

    I'm going to definitely give it a try. It looks a little complicated because I'm not that familiar with AutoHotkey but if it'll allow me to open the same window in the same position every time I boot up, then I'm golden. And you'll have to send me your address so I can mail you my firstborn. Express Mail of course. :)

    By the way, I would give you some reputation points right now but they won't let me since I just gave you some yesterday. But I won't forget to give you some later. :)
    Last edited by CerebralFreeze; 15 Jun 2018 at 08:14.
      My Computer


  4. Posts : 42,992
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #4

    For each program you'd need to do something like (you can check the command in the extensive help file)

    Run, ........

    You'd then need a loop testing for the presence of the window 'cos it will take time to launch and appear which could use

    loop {
    } Until Winexist, ........

    ; i.e. until the window is present then

    Move, .............


    Getting the test for the presence of the window right will be the tricky bit.

    Autohotkey is ideal for trialling things- you can test a single line of script in an ahk file.
    If a line is wrong, you get a message identifying the line.

    Note- never tried two monitors, so I've no idea how to discriminate between them. However Autohotkey has an active forum where you can ask for help.

    Thanks... Which courier do you recommend?
      My Computers


  5. Posts : 235
    Windows 10 Home
    Thread Starter
       #5

    Master Dalchina,

    Thanks for the help! Does WinMove allow you to create layout with document windows instead of just program windows? For example, can I have it precisely lay out a Microsoft Word document labeled "To Do List" or does WinMove only allow layout out the window for the entire Microsoft Word program?

    In other words, can I lay out the window for a Word document called "To Do List" on the left side of my screen and then another window for a different Word document called "Finished Tasks" on the right side of my screen?

    If AutoHotkey can do that or another program, that would be really perfect.

    By the way, with respect to your question about the courier, I have no clue. I wish I could help but I'm not well-versed in these type of things. I guess a courier that allows small packages with holes? In any case, I'll let you know when I get my first kid. I'll try my best to knock a girl up and get your payment to you as soon as possible! :)

    dalchina said:
    For each program you'd need to do something like (you can check the command in the extensive help file)

    Run, ........

    You'd then need a loop testing for the presence of the window 'cos it will take time to launch and appear which could use

    loop {
    } Until Winexist, ........

    ; i.e. until the window is present then

    Move, .............


    Getting the test for the presence of the window right will be the tricky bit.

    Autohotkey is ideal for trialling things- you can test a single line of script in an ahk file.
    If a line is wrong, you get a message identifying the line.

    Note- never tried two monitors, so I've no idea how to discriminate between them. However Autohotkey has an active forum where you can ask for help.

    Thanks... Which courier do you recommend?
      My Computer


  6. Posts : 42,992
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #6

    Hi, the brief description of Winmove tells all:
    Changes the position and/or size of the specified window.
    The full version
    WinMove, WinTitle, WinText, X, Y , Width, Height, ExcludeTitle, ExcludeText
    - lets you set where the window will be, and its size (width, height).

    Note: not all windows are resizable (some 3rd party progs).


    Launching the programs so as to get exactly the window you want will depend on you finding a way to do that for each program.

    There are two basic ways:
    - the exe may accept parameters (you may need to research this, if the information is available).

    - use Autohotkey to interact with the window (i.e. press appropriate buttons).
    This can be fiddly to set up, and then become out of date if the program GUI changes.
      My Computers


  7. Posts : 42,992
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #7

    Here's a simple example of a script that launches Notepad and moves and resizes it 5 times.

    Install Autohotkey, put the script below into a text file, then change the extension to ahk. Double click the ahk file.

    ;
    ; Launches, moves and resizes Notepad, then effectively clicks File, Open
    ;
    ;
    SetTitleMatchMode,2

    run, notepad.exe
    WinWait, Notepad

    counter:=5
    loop {
    Winactivate
    winmove,,, 500,70,500,800

    Sleep 1000

    winmove,,, 50,170,800,500
    counter:=counter-1
    Sleep 1000
    } until counter==0

    Msgbox, Moved 5 times

    ;
    ; Poor example of how to click a control by using screen position
    ;
    ;WinGetPos, X, Y,,,Notepad,
    ;Msgbox, X=%X%, Y=%Y%
    ;Mousemove, X,Y
    sleep, 2000

    ; Click file using position relative to top left corner
    ; N.B. numbers screen resolution dependent!
    ;MouseClick, left, 25, 50,


    ; Use the controls on the menus
    ; Notepad, File, Open
    ;
    WinMenuSelectItem, , , File, Open,
    exit
    Last edited by dalchina; 22 Jun 2018 at 14:15.
      My Computers


  8. Posts : 235
    Windows 10 Home
    Thread Starter
       #8

    Thank you


    You are truly a master of computers. Thank you.
      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 07:35.
Find Us




Windows 10 Forums