How can I start an exe file with a fixed width, height, x and y positions from the command line?
I would expect something like this to work:
MyApp.exe --width 800 --height 600 --x 200 --y 0
Is there a set of universal parameters available for all applications?
MoveWindowfunction fromuser32.dll. CalledProcess.GetProcessesByName(appTitle)to get process object and handle. And calledMoveWindow(process.MainWindowHandle, x, y, width, height, true)to set windows position and size. You can get more details here. – Sandeep Oct 22 '18 at 13:41