cappy2112 Posted March 5, 2006 Share Posted March 5, 2006 I'm launching a COM server from a AutoIt app,and want to make sure the COM server actually starts and is visible before proceeding. After launching the COM server, I'm calling WinWaitActive("WindowName") but I'm can only use a partial string of what is actually in the COM server's titlebar. The reason for this is the title of the COM server has a version number in it, as well as the year, and each user can have different versions running on their system. When I call WinWaitActive() with only the partial name in the titlebar it fails to find the window- as expected. Is there any other way I can verify that a window is visible, without using the full title string of the COM server? thanks Link to comment Share on other sites More sharing options...
Valuater Posted March 5, 2006 Share Posted March 5, 2006 (edited) yes..Autoit is set to read the first part of the title name ( default )Alters the method that is used to match window titles during search operations.1 = Match the title from the start (default)2 = Match any substring in the title3 = Exact title match4 = Advanced mode, see Window Titles & Text (Advanced)8) Edited March 5, 2006 by Valuater Link to comment Share on other sites More sharing options...
cappy2112 Posted March 5, 2006 Author Share Posted March 5, 2006 yes..Autoit is set to read the first part of the title name ( default )8)Ok- great. Can you explain how this is done under the covers?I need to do the same thing from a VB app, and it doens't have the luxury of AutoIt.THe Win32 API FindWindow() doesn't have the option of finding only a partial stringthanks Link to comment Share on other sites More sharing options...
Valuater Posted March 5, 2006 Share Posted March 5, 2006 (edited) Nope... Thats one reason why .... I am an AutoIt Lover!!! ( actually, I am just a hobbyist ) 8) Edited March 5, 2006 by Valuater Link to comment Share on other sites More sharing options...
Lapo Posted March 5, 2006 Share Posted March 5, 2006 I need to do the same thing from a VB app, and it doens't have the luxury of AutoIt.THe Win32 API FindWindow() doesn't have the option of finding only a partial stringthanks_http://www.google.it/search?hl=it&q=findpart%2Bwindows%2Bvb&meta=_http://vb.mvps.org/samples/project.asp?id=FindPart_http://vb.mvps.org/samples/ Link to comment Share on other sites More sharing options...
cappy2112 Posted March 5, 2006 Author Share Posted March 5, 2006 _http://www.google.it/search?hl=it&q=findpart%2Bwindows%2Bvb&meta=_http://vb.mvps.org/samples/project.asp?id=FindPart_http://vb.mvps.org/samples/very intersting resources- thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now