diff --git a/Recorder/Recorder.csproj b/Recorder/Recorder.csproj
index 636c856..64b893e 100644
--- a/Recorder/Recorder.csproj
+++ b/Recorder/Recorder.csproj
@@ -33,13 +33,13 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/Recorder/ViewModels/MainWindowViewModel.cs b/Recorder/ViewModels/MainWindowViewModel.cs
index a397258..7af90b4 100644
--- a/Recorder/ViewModels/MainWindowViewModel.cs
+++ b/Recorder/ViewModels/MainWindowViewModel.cs
@@ -183,7 +183,7 @@ private void SyncAccessibleToNode(Accessible? accessible)
var higherProcessName = Process.GetProcessById((int)Window.GetProcessId(hwNd)).ProcessName;
if (_ignoreProcessNames.Contains(higherProcessName, StringComparer.OrdinalIgnoreCase))
return null;
- var hoveredElement = _accessible.Identity.FromPoint(location);
+ var hoveredElement = _accessible.Detector.FromPoint(location);
return hoveredElement;
});
}
diff --git a/Samples/WindowsHighlightSample/MainForm.cs b/Samples/WindowsHighlightSample/MainForm.cs
index 596f5c8..04e3d48 100644
--- a/Samples/WindowsHighlightSample/MainForm.cs
+++ b/Samples/WindowsHighlightSample/MainForm.cs
@@ -49,7 +49,7 @@ public MainForm(Accessible accessible, ISerializer serializer, IAccessibleLocato
var higherProcessName = Process.GetProcessById((int)Window.GetProcessId(hwNd)).ProcessName;
if (_ignoreProcessNames.Contains(higherProcessName, StringComparer.OrdinalIgnoreCase))
return null;
- var hoveredElement = _accessible.Identity.FromPoint(location);
+ var hoveredElement = _accessible.Detector.FromPoint(location);
return hoveredElement;
});
}
@@ -210,7 +210,7 @@ private void button4_Click(object sender, EventArgs e)
private void button5_Click(object sender, EventArgs e)
{
- if (_accessible.Identity is not UiaAccessibleIdentity uiaAccessibleIdentity) return;
+ if (_accessible.Detector is not UiaAccessibleDetector uiaAccessibleIdentity) return;
var mainWindow = uiaAccessibleIdentity.DesktopElement.FindFirstChild(cf => cf.ByName("¼ÆËãÆ÷"));
if (mainWindow != null)
{
diff --git a/Samples/WindowsHighlightSample/WindowsHighlightSample.csproj b/Samples/WindowsHighlightSample/WindowsHighlightSample.csproj
index 7d2164b..676ec54 100644
--- a/Samples/WindowsHighlightSample/WindowsHighlightSample.csproj
+++ b/Samples/WindowsHighlightSample/WindowsHighlightSample.csproj
@@ -10,13 +10,13 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+