I'm having trouble finding a good process to do this, so maybe someone can help me. I need to enter a file path into a "Save As" dialog box that comes up from another application. I think I can handle the keystrokes, but I don't know how to find the right window.

This is basically trying to port VB6 code to 2005. The old way of doing it used something like this...

Code:
    ret& = CreateProcessA(vbNullString, cmdline$, 0&, 0&, 1&, _
         NORMAL_PRIORITY_CLASS, 0&, vbNullString, Start, proc)
    Do Until hWndApp <> 0
        hWndApp = FindWindow(vbNullString, windText)
        If hWndApp = 0 Then hWndApp = FindWindow(vbNullString, windText2)
    Loop
This seems to be how the old code worked it, but I can't really find anything comperable to what it was doing.