Get selected text from any application.
The library is written in Rust using napi-rs.
Using yarn:
yarn add @one-lang/get-selected-text
import { getText } from '@one-lang/get-selected-text';
const text = await getText();
console.log(text);
- Windows (Automation API)
Nikolay Slivinskiy