Hello

I need some help, in my application i call a COM API that open's a dialog window that the user has to put some strings, what i'm trying to do it's before calling the method of the api, i create some service/background worker that checks for that dialog, and when the dialog shows up, fill all the fields...

It's possible to do somehting like this?
VB.NET Code:
  1. mySubThatWillWait("WindowName") 'To stay running until finding the window and fill the fields
  2. Dim result as long = MyComCall.Run(Me.Handle) 'Call the Method

Thanks