Rob van der Woude's Scripting Pages

Help text for CatchStrayWindows.cs

(view help text of CatchStrayWindows.cs as plain text)

CatchStrayWindows.exe,  Version 1.00
Move out-of-sight windows back to the primary screen

Options: /IA    Include Anonymous windows, i.e. those without title
         /IM    Include Minimized windows

Credits: Get window position and size
         https://stackoverflow.com/a/1434577
         List desktop windows based on code by Rod Stephens
         http://csharphelper.com/blog/2016/08/list-desktop-windows-in-c/
         Moving windows based on code by Roberto Luis Bisbé
         https://rlbisbe.net/2013/11/19/
         moving-windows-programatically-with-windows-api-the-path-to-winresize/

Note:    Return code equals number of moved windows, or -1 in case of errors.

Written by Rob van der Woude
https://www.robvanderwoude.com

page last uploaded: 2020-03-25, 23:10