I have a script to open 8 windows using VNC viewer (for seeing screens from computer). This works fine. After the script runs and I have the 8 windows open, I have to manually snap them to the monitors so they look tiled. Is there a way to resize a window and move it using powershell?
This is what I have so far. This just opens the 8 screens using TightVNC Viewer.
8 separate monitors and tiled does not make since. If you have 8 windows open and 8 monitors to use, are you saying, you want each window on one of each monitor?
Tiled, means you want them on one monitor, then you’d call windows proper to tile / cascade windows feature not use sendkeys stuff.
One monitor, with 8 VLC windows open. I’m able to use AutoIT scripts to move and resize windows, so may be that’s the right path. I just need to figure out the coordinate system, but so far AutoIT is doing what I want.
Yeppers, PS is not really the first choice for GUI / App Window automation.
AutoIT, Selenium, WASP, etc. are purposed built things for such efforts. Well, there’s rolling your own via .Net natively, but that requires you to know C# and how to tap the Win32 API to do that.