
SendKeys method to a minimized application
I have tried Walter Zackery's suggestion, but for me it does nothing more
than run Notepad as a minimized window.
Also, I note that (at the times when the SendKeys method is invoked to send
the 'percent-x' and 'percent-n' to the application - that is, after the
pauses caused by the Sleep method) there is a beep... which suggests to me
that some sort of error has been detected, or at least that there is
something for the user to be aware of, but what?
In the Microsoft documentation for WSH, under AppActivate, the following
statements appear:
"The AppActivate statement changes the focus to the named application or
window but does not affect whether it is maximized or minimized. .... Use
the Shell function to start application and set the window style."
Can anyone tell me precisely what this "Shell function" is and where I might
be able to find some documentation on it?
John W Gross