tauri icon indicating copy to clipboard operation
tauri copied to clipboard

How can I get access to the system's current active window and application?

Open omerdn1 opened this issue 3 years ago • 1 comments

Hello! Is there a way currently to be able to monitor the current active application in the OS? For example if I'm focused on chrome I want my tauri app to be able to pick that up.

Electron has an API that's able to give that information for programs that have a GUI window, called: desktopCapturer

omerdn1 avatar Aug 02 '22 12:08 omerdn1

There isn't a way to do that yet. Maybe you can find a Rust crate that exposes that?

lucasfernog avatar Aug 02 '22 16:08 lucasfernog

For anyone wondering - I've been using https://github.com/dimusic/active-win-pos-rs to get information of the active window.

Would be cool to maybe see tauri incorporate it in some way in the future

omerdn1 avatar Aug 19 '22 10:08 omerdn1