Hello, I'm a bit confused since I've found a bug in the command /window with the -f switch.

From the help file: "f = indicates that w h are the required width and height of the text display area as opposed to the window size"

That doesn't work very well.

;/winfbug <w> <h>
alias winfbug {
window -hpf @test -1 -1 $1 $$2
drawrect -f @test 2 1 0 0 $1-
drawsave @test test.bmp
window -c @test
echo 2 -s /window -f bug: $1-2 -> $pic(test.bmp).width $pic(test.bmp).height
}

I also add a DLL command to retrieve the size of the "drawing aera" after /window -f, and it is the same as the $pic()'s returned value, so it's not a bug of /drawsave. [DLL command: $cwnd(getClientRect,$cwnd(findWindowEx,$window(@test).hwnd > > Static))]

Some examples when the /window -f fails:
/window -f bug: 60 60 -> 114 60
/window -f bug: 100 100 -> 114 100
/window -f bug: 200 30 -> 200 28

On the other hand, it works when the values are a bit highest:
/window -f bug: 120 100 -> 120 100
/window -f bug: 300 300 -> 300 300
/window -f bug: 1024 768 -> 1024 768

edit: With mIRC 6.35 & Windows Vista