Size and position an application's window when opening it.

Answered Size and position an application's window when opening it.

  • Wednesday, October 31, 2012 9:21 PM
     
     

    <Complete neophyte alert>

    I have a very basic script that I run after I have rebooted my windows 7 machine, that opens the six apps I use all day every day. Just a little time-saver that also gets me familiar with powershell. It goes something like this:

    $p=[System.Diagnostics.Process]::Start("ONENOTE.EXE")
    $p=[System.Diagnostics.Process]::Start("iexplore.EXE")

    etc etc

    Is it possible to do something similar to this that will also size and position a given application on the screen? For example:

    • open notepad,
    • make it 500 pixels wide,
    • make it 500 pixels tall and
    • position the top left corner at 100 pixels and 200 pixels respectively.

    Cheers

    GPO

All Replies