I want to start a program and have its window cover exactly an existing window.
@WINPOS -> top,left,bottom,right
@WINSIZE -> width,height
Checked:
@WINSIZE width == @WINPOS right - @WINPOS left
@WINSIZE height == @WINPOS bottom - @WINPOS top
Using START /POS=left,right,width,height to start a program, the size of the new window is indeed identical, but the position is not: much higher and to the left.
EDIT: since I was using a console to test (which apparently does its own sizing) is not surprising that the sizes where identical.
Also, I have noticed that @WINPOS top and left, sometimes have negative values.
Please advice.
@WINPOS -> top,left,bottom,right
@WINSIZE -> width,height
Checked:
@WINSIZE width == @WINPOS right - @WINPOS left
@WINSIZE height == @WINPOS bottom - @WINPOS top
Using START /POS=left,right,width,height to start a program, the size of the new window is indeed identical, but the position is not: much higher and to the left.
EDIT: since I was using a console to test (which apparently does its own sizing) is not surprising that the sizes where identical.
Also, I have noticed that @WINPOS top and left, sometimes have negative values.
Please advice.
Last edited: