
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