Using VBScript to minimize, restore/maximize or close a window 
Author Message
 Using VBScript to minimize, restore/maximize or close a window

I would like use VBScript to do the equivilant of mouseclicking to
minimize, maximize/restore or close a window in which I have
made sendkey entries. I assume one procedure works for all windows
with the minimize, restore/maximize, close button.

set Shell = WScript.CreateObject("WScript.Shell")
shell.run "notepad"
wscript.sleep(5000)
shell.sendkeys("test")
'>>> procedure to minimize, restore/maximize, close window



Sun, 12 Oct 2003 10:24:46 GMT  
 Using VBScript to minimize, restore/maximize or close a window
The ALT-SPACE key sequence brings up the context menu with Minimize/Maximize/Restore
etc on it, if that helps ...

MM



Quote:

> I would like use VBScript to do the equivilant of mouseclicking to
> minimize, maximize/restore or close a window in which I have
> made sendkey entries. I assume one procedure works for all windows
> with the minimize, restore/maximize, close button.

> set Shell = WScript.CreateObject("WScript.Shell")
> shell.run "notepad"
> wscript.sleep(5000)
> shell.sendkeys("test")
> '>>> procedure to minimize, restore/maximize, close window



Sun, 12 Oct 2003 11:20:18 GMT  
 
 [ 2 post ] 

 Relevant Pages 

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

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

3. How to hide the minimize, restore and close button on a maximized form

4. How to hide the maximize/restore and close-button on a maximized form

5. Hide Close, Minimize and Maximize at top of access window

6. Visual Basic - Trapping Minimize/Maximize/Close Events (from the window's buttons)

7. Window without maximize-, minimize- and close-button needed

8. API for hide the icons of maximize, minimize and close the window

9. maximize minimize restore

10. Minimize, Restore and Maximize

11. Minimize/Maximize/Restore equivalent to WM_CLOSE?

12. Window Refreshing When Using Minimize And Maximize

 

 
Powered by phpBB® Forum Software