Page 1 of 1

Command Line / x & width shortfall

Posted: Fri Feb 02, 2024 8:11 pm
by meteorquake
When launching with -x -y -width -height the horizontal values don't work out (y values are fine).
-x 0 doesn't place the window on the left edge, and items that should be flush have a large gap between.
You can test that with these two commands which ought to place a window top-left and a second on its right (touching) -

"C:\Program Files\Everything 1.5a\Everything64.exe" -new-window -x 0 -y 0 -width 500 -height 500 -no-maximize
"C:\Program Files\Everything 1.5a\Everything64.exe" -new-window -x 500 -y 0 -width 500 -height 500 -no-maximize

Hopefully something easy to correct?

Cheers!

Re: Command Line / x & width shortfall

Posted: Fri Feb 02, 2024 9:17 pm
by therube
OS?

Looks good on my end, Win7.
Other OS might ? use an "offset", so maybe you might need something like -4,-4 or whatnot?
.
Everything - specified window locations correct.png
Everything - specified window locations correct.png (98.29 KiB) Viewed 846 times

It might be something similar to, https://github.com/dotnet/winforms/issu ... 1227637666.

Re: Command Line / x & width shortfall

Posted: Fri Feb 02, 2024 10:06 pm
by void
There's hidden borders on windows 10+.

Please add a border offset (7 pixels) to your command line:

"C:\Program Files\Everything 1.5a\Everything64.exe" -new-window -x -7 -y 0 -width 514 -height 507 -no-maximize
"C:\Program Files\Everything 1.5a\Everything64.exe" -new-window -x 493 -y 0 -width 514 -height 507 -no-maximize

Please note you will be unable to grab the window edge where the hidden border overlaps.

Re: Command Line / x & width shortfall

Posted: Sat Feb 03, 2024 6:28 am
by meteorquake
Thanks - I was envisaging offsetting it in the meanwhile.
To make them meet just by adjusting the left hand window is to use -x -7 on the left as you suggest, but +23 to the width instead of +14.
d