// Copyright (C) 2024 Tristan Gerritsen // All Rights Reserved. use ui_automation::UIAutomation; fn main() { let ui = UIAutomation::new(); for app in ui.applications() { println!("App {} {:?}", app.name(), app.owner().pid()); for window in app.windows() { println!(" {} @ {}", window.title(), window.position()); } } }