$window(-1).w will give you width for your screen
$window(-1).h will give you height fro your screen
----
$window(-2).w and $window(-2).h will give you width and height of Main mIRC window
----
$window(-3).w and $window(-3).h will give you width and height for mirc MDI area.