Sign in to follow this  
Followers 0
Lee Evans

Get Title Of Act. Win. Without Any Of The Title

3 posts in this topic

I have a script that sends a keystroke which can pop up a new active window. I need to know the title of the new window to be able to deal with it via some user defined functions I have written. However I have no way of knowing any of what the window title will be. They are only one word titles and there are six possibilitys for what it could be titled.

I have read the help on the wintitle matching mode but they seem to require you to know some of the windows title.

Sorry if it is staring me in the face in the help file but sometimes you can't see the wood for the trees.

Thanx

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

$Title = WinGetTitle('')

An empty string will use the current active window.

Edited by sugi

Share this post


Link to post
Share on other sites

You can also use the au3_spy to find out what classname the new window is.


Who else would I be?

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  
Followers 0