Find control Name

This commit is contained in:
Jonathan Jenne
2019-08-07 16:05:53 +02:00
parent 43d3ba5ef2
commit aa84e977b9
22 changed files with 2556 additions and 179 deletions

View File

@@ -0,0 +1,18 @@
Imports DD_Clipboard_Watcher.ClassWindowAPI
Public Class frmControlCapture
Public ControlName As String
Public ProcessName As String
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
Dim oResult As WindowInfo = GetFocusedControl(Handle)
If oResult IsNot Nothing Then
txtPID.Text = oResult.ClassName
txtName.Text = oResult.ProcessName
txtControlName.Text = oResult.ControlName
ControlName = oResult.ControlName
ProcessName = oResult.ProcessName
End If
End Sub
End Class