BigDaddyO Posted January 16, 2020 Posted January 16, 2020 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?
mikell Posted January 16, 2020 Posted January 16, 2020 1 hour ago, BigDaddyO said: the only way to know the new tab is opened is by watching the Window Title So why not WinGetTitle then StringInStr or regex ?
BigDaddyO Posted January 16, 2020 Author Posted January 16, 2020 I've got a workaround by using WinGetTitle in my loop While 1 if StringLeft(WinGetTitle($hWIN, ""), 25) = "MyApp - NewTab Name -" Then if StringInStr(ControlGetText($hWIN, "", "AfxWnd1403"), "My Value to check") then exitloop Endif Wend
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