Only partially related, but someone might find it useful.

Only works on NT...

This uses SendKeys to get the screen properties of the current DOS box by ALT+SPACing to the Properties page and COPY and PASTing the Width and Height into the DOS box window. The PASTE goes into the keyboard buffer and is retrieved by the GETS function.


getScreenInfo.KiX

code:

break on
cls


; get dos box width and height
"Width="
$=sendkeys("~ p^{ins}{esc}{esc}~ ep{enter}")
gets $width


"Height="
$=sendkeys("~ p{tab}^{ins}{esc}{esc}~ ep{enter}")
gets $height


quit



cj