Gary-
I don't know for sure if this will work, but you could try
the SendMessage API function:
Public Declare Function SendMessage Lib "user32"
Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As
Long, ByVal wParam As Long, lParam As Any) As Long
This function sends a message to a window, then waits for
an answer. Seems to me that if a Window is able to reply,
it's probably ready for keystrokes- but I'm really not
sure.
For more info on calling this function, see AllAPI.net:
http://www.mentalis.org/apilist/SendMessage.shtml
There is a link near the middle of the page for an example.
IN FACT, if you look at the HotKey example, it may do
everything you need IN ONE STEP!!! It looks like it will
send the hotKey and wait until it's processed! So you may
be able to skip SendKeys entirely, and get what you want
in one function!!
Hope this does the trick,
-Andrew
===========================================