Jump to content

How to verify another app Window is active (visible)


Recommended Posts

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

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 title

3 = Exact title match

4 = Advanced mode, see Window Titles & Text (Advanced)

8)

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

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 string

thanks

Link to comment
Share on other sites

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 string

thanks

_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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...