Command Line / x & width shortfall

Found a bug in "Everything"? report it here
Post Reply
meteorquake
Posts: 523
Joined: Thu Dec 15, 2016 9:44 pm

Command Line / x & width shortfall

Post 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!
therube
Posts: 5056
Joined: Thu Sep 03, 2009 6:48 pm

Re: Command Line / x & width shortfall

Post 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 3418 times

It might be something similar to, https://github.com/dotnet/winforms/issu ... 1227637666.
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: Command Line / x & width shortfall

Post 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.
meteorquake
Posts: 523
Joined: Thu Dec 15, 2016 9:44 pm

Re: Command Line / x & width shortfall

Post 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
Post Reply