Try this in your script...
 
Activate "Console"  'the console's caption may be different
SendKeys "% N", True    'this sends an Alt-Space-N to the console to minimize it.
There's a concern here about how the console application behaves if it actually is a minimized DOS application, so may sure it will take Key commands properly.  If it's a DOS app you may need to preceed each Key string with a "@_" as in, for example, Key "@_{Enter}"
 
Rich McNeil
Boston Software Systems
866 653 5105
www.bostonworkstation.com
 
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark A. Loes
Sent: Friday, April 09, 2004 4:07 PM
To: [EMAIL PROTECTED]
Subject: [Talk] Minimize the Console window

Has anyone had success in minimizing a 32-bit Console window?

To minimize the Workstation window I used
Taskbar = True
which was successful, but it doesn't work for a Console window after the
Connect "myconsole", stConsole
command and repeats minimizing the Workstation window.
I'm still tinkering with this one.
If not possible, then I'll utilize the pop-up windows for errors and for the
script successful completion, then use
Shutdown = True
to close the Workstation application.

Thanks,
Mark

Mark A. Loes
Information Systems
Contra Costa Health Services
595 Center Ave Ste 210
Martinez, California US 94553
tel: (925) 313-6233
http://www.cchealth.org
[EMAIL PROTECTED]

Reply via email to