Is there any way to communicate between my .exe application and Firefox?

Is there any way to communicate between my .exe application and Firefox?

Because I have my own web page. I use FireFox to view it.

I have an application (in C ++) for processing a snippet of HTML code from my web page in FireFox. My application can print something directly to a printer (raw print).

Since then, I have not been able to access the Firefox DOM file (HTML page source) from outside of firefox; In addition, I cannot directly print to a printer (raw print) from firefox.

Now I am looking for a solution to this problem. Here are my options:

1.) My web page I can copy my linked text to the clipboard.

2.) My web page I can write my associated text with a Firefox cookie.

3.) My web page I can write my associated text with a file from a client PC.

4.) Any other way to send my linked text to my .exe application.

But I do not know how I can do this: How to copy to the clipboard in firefox, How can I read the FireFox cookie from my .exe application, How to create a file on the client PC.

Is there a way to communicate between my .exe application (in C ++) and Firefox?

+3
source share
4 answers

, URL- FireFox, , . . "X-myprettyprinter". FireFox http://www.example.com/index.html X-myprettyprinter:http%2D%2Dwww.example.com/index.html. FireFox , X-myprettyprinter, URL- , . : . : URL-

+1

firefox API. , . nsIProcess: " nsIProcess ".

+3

firefox, - .

Firefox.

0
source

The best way to do this is to skip the .exe application and just make an announcement for FireFox, take a look at the FireBug ad unit. It can pull certain codes from a web page. If you use the API, I bet you could do what your .exe program should do.

0
source

Source: https://habr.com/ru/post/1712443/


All Articles