[RESOLVED] Check for a specific window
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:
mySubThatWillWait("WindowName") 'To stay running until finding the window and fill the fields
Dim result as long = MyComCall.Run(Me.Handle) 'Call the Method
Thanks
Re: Check for a specific window
I think i found something...
ManagementEventWatcher Class
But some additional info, tips are welcome... :)
Re: Check for a specific window
Another problem, when i get the window how do i write to the textboxs and select some value from the combobox?
I can get the window handle, i think that i need to get the pointers for the textboxs and for the combobox, like i can see them in the SPY++.
Re: Check for a specific window
Solved
With FindWindow, FindWindowEx and SendMessage :)