Request for thoughts ...

Was following this thread with much interest. And since one can get mildy annoyed when one loose's the console window (when SetConsole("HIDE") is used), would like to suggest the following new function. The state can then be saved and (if required) restored later.

$State = GetConsoleState()

Where $State is:

0 Console is HIDDEN
1 Console is SHOWN
2 Console is MINIMIZED
3 Console is MAXIMIZED

Maybe need another value meaning "N/A" when running wkix32 ? Thought about asking for return codes from SetConsole() (ie, previous state) but that would probably break too many existing scripts.

[ 10. July 2003, 17:40: Message edited by: Shawn ]