Maximize, minimize as shell commands 
Author Message
 Maximize, minimize as shell commands

Is it possible  to manipulate the shell using VB Script so that ANY window
that has the focus can be maximized and minimized from the keyboard ? I know
the function exists as a mouse click event if you right click the window's
icon in the top left hand corner.

How can you convert these functions to a keyboard stroke using VBScript ?

ColinR



Tue, 05 Feb 2002 03:00:00 GMT  
 Maximize, minimize as shell commands
You maximize/minimize the window with the focus with the keyboard using

ALT+spacebar followed by x (maximize) or n (minimize)

A script could use the Sendkeys method of the WScript.Shell object to send these
keystrokes programmatically.

Not all windows can be maximized (Windows Calculator, for example)...

--
Michael Harris


| Is it possible  to manipulate the shell using VB Script so that ANY window
| that has the focus can be maximized and minimized from the keyboard ? I know
| the function exists as a mouse click event if you right click the window's
| icon in the top left hand corner.
|
| How can you convert these functions to a keyboard stroke using VBScript ?
|
| ColinR
|
|



Wed, 06 Feb 2002 03:00:00 GMT  
 Maximize, minimize as shell commands
It is possible to use the Sendkeys method of WSH 2.0 (see Michael Harris
anwer).
A WSHSendkeys method for WSH 1.0 is available for free from the WSH Bazaar.
The WSHExtend Control provides also some methods to get the Window handle
and
set the window state using API functions. Have a look into the WSH Bazaar
for examples
and further details at:

httP://ourworld.compuserve.com/homepages/Guenter_Born/index0.htm

G. Born


Quote:
>Is it possible  to manipulate the shell using VB Script so that ANY window
>that has the focus can be maximized and minimized from the keyboard ? I
know
>the function exists as a mouse click event if you right click the window's
>icon in the top left hand corner.

>How can you convert these functions to a keyboard stroke using VBScript ?

>ColinR



Thu, 07 Feb 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. minimize, maximize script just like on microsoft.com

2. Minimize/Maximize

3. disabling minimize, maximize, restore buttons of an html popup window

4. Stopping another process and minimizing/maximizing/restoring

5. Using VBScript to minimize, restore/maximize, close window

6. Using VBScript to minimize, restore/maximize or close a window

7. Disabled Minimize, Maximize button from a window

8. Maximizing a Minimized Application

9. Maximizing a minimized application

10. maximized minimized close

11. link that can maximize/minimize browser window

12. Using Scripting.Shell Exec command to capture the results of a SFTP ls command

 

 
Powered by phpBB® Forum Software