Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix windows build (#1585)

Divanshu Grover501dbaf2c438
diff --git a/screenpipe-core/src/operator/platforms/mod.rs b/screenpipe-core/src/operator/platforms/mod.rs
index b5a8ba3bf..5fb92f82f 100644
--- a/screenpipe-core/src/operator/platforms/mod.rs
+++ b/screenpipe-core/src/operator/platforms/mod.rs
@@ -4,7 +4,9 @@ use crate::operator::{AutomationError, Selector, UIElement};
pub trait AccessibilityEngine: Send + Sync {
/// Get the root UI element
fn get_root_element(&self) -> UIElement;
-
+
+ #[cfg(target_os = "windows")]
+ fn get_element_by_id(&self, _id: &str) -> Result<UIElement, AutomationError>;
/// Get the currently focused element
fn get_focused_element(&self) -> Result<UIElement, AutomationError>;