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

  1.    14 Jun 2018 #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 ComputerSystem Spec

  2.    15 Jun 2018 #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:
    Click image for larger version. 

Name:	1.jpg 
Views:	8 
Size:	159.8 KB 
ID:	192339

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

  3.    15 Jun 2018 #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 ComputerSystem Spec

  4.    15 Jun 2018 #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 ComputerSystem Spec

  5.    22 Jun 2018 #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: View Post
    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 ComputerSystem Spec

  6.    22 Jun 2018 #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 ComputerSystem Spec

  7.    22 Jun 2018 #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 ComputerSystem Spec

  8.    23 Jun 2018 #8

    Thank you


    You are truly a master of computers. Thank you.
      My ComputerSystem Spec


 

Related Threads
Hi there, thanks for having me Upon random occasions when I restart my computer, windows 10 decides to change the physical layout of my folders on the desktop screen. (bunches them all together) Wondering how to fix this?
Source: Introducing the Windows Desktop Program for Desktop Application Analytics - Windows Developer Blog
I've tried several utilities that purport to save your desktop layout and restore it when something gets messed up. They all SAVE the layout (or seem to). The problem I have is that none of them successfully RESTORE a saved layout when you...
Hi all, I'm new to this forum so apologies if this doesn't make sense!! I've recently upgraded my Windows 10 to the new 1511 version and after a while I've noticed a few issues with my desktop in that all the icons disappear when it boots up...
http://arstechnica.com/gadgets/2014/10/windows-10-doesnt-fix-the-desktop-it-fixes-windows-8s-reputation/

Tags for this Thread

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 06:01.
Find Us