This commit is contained in:
Jonathan Jenne 2019-08-09 17:22:25 +02:00
parent 16a6febb34
commit 09ed723295

View File

@ -233,18 +233,21 @@ Public Class ClassProfileFilter
If oControl.AutomationId <> String.Empty And oControl.ControlName <> String.Empty Then
If oControl.AutomationId = Automation.AutomationId And oControl.ControlName = oFocusedControlName Then
If oRegex.Match(ClipboardContents).Success Then
Logger.Debug("Both AutomationId and ControlName matched!")
oControls.Add(oControl)
End If
End If
ElseIf oControl.AutomationId <> String.Empty Then
If oControl.AutomationId = Automation.AutomationId Then
If oRegex.Match(ClipboardContents).Success Then
Logger.Debug("Both AutomationId matched!")
oControls.Add(oControl)
End If
End If
ElseIf oControl.ControlName <> String.Empty Then
If oControl.ControlName = oFocusedControlName Then
If oRegex.Match(ClipboardContents).Success Then
Logger.Debug("Both ControlName matched!")
oControls.Add(oControl)
End If
End If