Jump to content

Handle and RegExpTitle

Recommended Posts

I've got an app where I select a user and it opens that user in a new tab and displays the information.  This is an old app using non-standard controls so the only way to know the new tab is opened is by watching the Window Title.

$hWIN = the handle to the instance of the app I opened, there are sometimes more of this app open so I need to use the handle.

The Title after moving into a new tab changes so I want to use that to verify My Window handle title changed to include the new Tab name:  MyApp - NewTabName - Specific User Name

$sFieldText = ControlGetText("[HANDLE:" & $hWIN & "; REGEXPTITLE:^MyApp - NewTab Name -*]", "", "AfxWnd1403")

I've tried a few different REGEXPTITLE options but it seems to only look at the Handle to match the window the control is in.

Am I doing something wrong with this?  

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

  • Recently Browsing   0 members

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