Jump to content
Sign in to follow this  
cappy2112

How to verify another app Window is active (visible)

Recommended Posts

cappy2112

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

Share this post


Link to post
Share on other sites
Valuater

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

Share this post


Link to post
Share on other sites
cappy2112

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

Share this post


Link to post
Share on other sites
Valuater

Nope...

Thats one reason why ....

I am an AutoIt Lover!!!

( actually, I am just a hobbyist )

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites
Lapo

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/

Share this post


Link to post
Share on other sites
cappy2112

_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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.