B
B
beduin012017-02-11 15:51:41
Google Chrome
beduin01, 2017-02-11 15:51:41

How to transfer the selected text from the browser to a third-party application?

Let's say I want to transfer the selected text from the browser to a third-party application. As I understand it, there are no problems to intercept text in JS, but what to do next? How to make some exe'shnik able to catch this data?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin, 2017-11-15
@puchkovk

Pass the selected text through a request over the network - for example, localhost:8888/text=text. This is simply done with JS. Well, the application must listen to a specific address / port, and accept such requests.
UPD: Well, or as well suggested in the comments to the question - through the native messaging api.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question