Results 1 to 13 of 13
  1. #1
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Chicago, Illinois, USA
    Posts
    187
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Question Windows Position and Size (Windows 7)

    Any recommendations for a good (and free) utility to lock the position and size of multiple application windows?

  2. #2
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,436
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Zeno,

    Have a look at this thread and the PowerShell Code which allows you to setup different "Work" setups.

    HTH
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  3. The Following User Says Thank You to RetiredGeek For This Useful Post:

    _Zeno_ (2016-08-01)

  4. #3
    New Lounger
    Join Date
    Nov 2015
    Posts
    17
    Thanks
    8
    Thanked 2 Times in 2 Posts
    Thanks for the feedback but unfortunately, your response is way over my head.

    I'm looking for a utility that can save (and lock) the window size and positions for three applications running.

    I work in a manufacturing plant and want to prevent our machine operators from re-sizing or moving how their screens are setup. Ideally, it should be a free app. And even better, it would let me start open and lock those applications directly at logon.
    Attached Images Attached Images
    Last edited by _Zeno_; 2016-08-03 at 08:45. Reason: hide proprietary information in image

  5. #4
    Super Moderator Rick Corbett's Avatar
    Join Date
    Dec 2009
    Location
    South Glos., UK
    Posts
    2,143
    Thanks
    101
    Thanked 580 Times in 464 Posts
    Quote Originally Posted by _Zeno_
    Thanks for the feedback but unfortunately, your response is way over my head.

    I'm looking for a utility that can save (and lock) the window size and positions for three applications running.

    I work in a manufacturing plant and want to prevent our machine operators from re-sizing or moving how their screens are setup. Ideally, it should be a free app. And even better, it would let me start open and lock those applications directly at logon.
    Have a look at AutoHotkey (free, open source) and, in particular, its WinMove command that moves windows to X,Y co-ordinates you specify.

    With any scripting language there's always a learning curve but IMO the AHK support forum is usually very helpful to 'newbies' and contributors quite often write the code that 'newbies' have trouble with.

    Alternatively, DonationCoder has a 'Coding Snacks - New Requests' forum which may be able to help with a specific freeware utility (which may be written in AutoHotkey).

    Hope this helps...
    Last edited by Rick Corbett; 2016-08-01 at 13:29.

  6. The Following User Says Thank You to Rick Corbett For This Useful Post:

    _Zeno_ (2016-08-01)

  7. #5
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,436
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Quote Originally Posted by _Zeno_ View Post
    it would let me start open and lock those applications directly at logon.
    Zeno,

    Neither my code or AHK will LOCK the window location. They can both set it up initally at logon via a Scheduled Task but once that is done I don't know of any way to prevent the user from moving or resizing the windows. However, you have piqued my interest and I'll look into this functionality.

    HTH
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  8. #6
    New Lounger
    Join Date
    Nov 2015
    Posts
    17
    Thanks
    8
    Thanked 2 Times in 2 Posts
    Thanks for looking into this issue. My guys on the off-shifts can't seem to keep their hands off. Rather than resorting to disciplinary actions (difficult to determine who's doing what as there are dead spots in our cameras), I'd rather just take the temptation away from them.

  9. #7
    Super Moderator Rick Corbett's Avatar
    Join Date
    Dec 2009
    Location
    South Glos., UK
    Posts
    2,143
    Thanks
    101
    Thanked 580 Times in 464 Posts
    Do the machine operators have to interact, e.g. keyboard and/or mouse? Or are the monitors just for info displays only?

  10. #8
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,436
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Hey Y'all,

    Interestingly, this question has been being asked for quite a few years w/o any satisfactory answers.

    What we do know:
    • You can use a variety of programs free and paid to do the initial sizing and placement of the program windows.
    • This process can be started with a scheduled task initiated at logon.
    • There is no way, it just isn't provided by windows, to "LOCK" the setup in place.
    • If you are writing the code you CAN simulate the LOCK function via an endless loop with a timer.



    That said you could take code (like what I posted earlier) and modify it along these lines:
    Code:
    Do {
    
           Open program(s) if closed. (my code already does this)
           Position the windows as desired (my code already does this)
           Start-Sleep -minutes $Interval
    
         } Until ($False)  #i.e. do it all again in case they moved or were closed.
    Of course, if the "I don't want them messing with things" users decide to close the PowerShell program it's all for naught!

    But wait! there's more... I found this little gem:
    If you schedule the powershell job and run it under the system ID it
    will be totally invisible. Unfortunately, because it is invisible, it
    has no window title.
    Thus the only way to shut it down is via the Task Scheduler or system reboot/shutdown but for this task that's not a biggie.

    So in the end this thing is doable if a bit kludgy!

    HTH
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  11. #9
    New Lounger
    Join Date
    Nov 2015
    Posts
    17
    Thanks
    8
    Thanked 2 Times in 2 Posts
    They are interacting (both keyboard and mouse)

  12. #10
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,436
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Zeno,

    Ok, based on my post #8 here's my code modified to "enforce" the windows size/position.

    Features:
    1. Create configuration files using a spreadsheet like MS Excel. This allows multiple configurations.
    2. Set the interval, in seconds, that the program will "enforce" the configuration.
    3. Supports multiple screen setups (it does take some math but just addition, subtraction, and division and you can use Excel to do the work!).
    4. Includes complete Comment-Based help file. Access this using Get-Help drive:\path\Set-WorkEnv.ps1 -full in PowerShell. *** PLEASE READ THE HELP! ***


    I hope you find this useful and easier to use as I've included in the .zip file a sample excel file and .csv file created from Excel.

    In any event I enjoyed the challenge. I always enjoy bending the machine to my will. To bad it doesn't work with my Wife!

    ZipFile: Set-WorkEnv.zip

    Zip File Contents:
    Function-Set-WindowSizePosition.ps1
    Set-WorkEnv.ps1
    WorkEnv1.csv
    WorkEnv1.xlsx

    Note: the PS1 files are both new versions so make sure you overwrite your previous versions! Also the program looks for those files in your Documents\Scripts folder. This can be changed if you want to adjust the $BasePath variable in the Set-WorkEnv.ps1 file.

    Enjoy!

    P.S. I haven't tried the Scheduled Task as System yet but that's for tomorrow!

    HTH
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  13. The Following User Says Thank You to RetiredGeek For This Useful Post:

    _Zeno_ (2016-08-03)

  14. #11
    New Lounger
    Join Date
    Nov 2015
    Posts
    17
    Thanks
    8
    Thanked 2 Times in 2 Posts
    AWESOME, can't believe the degree and speed of help available on this forum. HUGE THANX to RetiredGeek! Can't wait to try out his solution (unfortunately will be too busy over the next week or two with customer commitments).

  15. #12
    5 Star Lounger
    Join Date
    Dec 2009
    Location
    Delaware, US
    Posts
    1,171
    Thanks
    19
    Thanked 99 Times in 88 Posts
    Quote Originally Posted by _Zeno_ View Post
    I work in a manufacturing plant and want to prevent our machine operators from re-sizing or moving how their screens are setup. Ideally, it should be a free app. And even better, it would let me start open and lock those applications directly at logon.
    I haven't been involved with something like this for a very long time, but I used to use Citrix and thin clients for similar situations and it allowed you to do this. But that's an expensive solution.

    What you may want to do is look into "Kiosk" software, which is designed to do things like this. There are also some things you can do in Windows 10 to lock things down somewhat, but I haven't spent much time looking at them.
    Graham Smith
    DataSmith, Delaware
    "For every expert there is an equal and opposite expert.", Arthur C. Clarke (1917 - 2008)

  16. The Following User Says Thank You to gsmith-plm For This Useful Post:

    _Zeno_ (2016-08-05)

  17. #13
    New Lounger
    Join Date
    Jan 2010
    Location
    UK
    Posts
    21
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Here's a utility that will do what you wish: ZMover. I have used it on dual monitor systems for years. It works extremely well and is very easy to use.

  18. The Following User Says Thank You to Skier641 For This Useful Post:

    _Zeno_ (2016-08-05)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •