I'm not sure if I can say that VBS would be good for this, I think I would prefer C ++ for this, as it will include Windows API calls, which, in my opinion, are easier in C ++, but it depends on your skills and VBS can be wonderful.
The API calls I would look at would be EnumWindows or FindWindow to find the windows you want to move, and then SetWindowPos to move them.
I think that if you want to move them to an additional monitor, you should do this by moving it to a position outside the main monitor (possibly a negative position if the additional monitor is expanded on the left example). To do this, you will need to find out the current resolution and those that, I think, you can get from the WMI class Win32_VideoController .
Hans Olsson Jan 11 '13 at 9:23 2013-01-11 09:23
source share