title: Is there any way to communicate between my .exe application and Firefox?
body: <p>Is there any way to communicate between my .exe application and Firefox?</p>
  
  <p>Because, I have my own webpage. I'm using FireFox to browse it.</p>
  
  <p>I have an application (in c++) to process a piece of HTML code from my webpage within FireFox. My application can print something directly to printer (raw print). </p>
  
  <p>Since now, I coudn't access firefox's DOM content (page HTML source) from outside firefox; Also, I coudn't print directly to printer (raw print) from firefox.</p>
  
  <p>Now, I'm looking solution for this problem. Here are my possibilities:</p>
  
  <p>1.) My web page I can copy my related text to clipboard.</p>
  
  <p>2.) My web page I can write my related text to Firefox's cookie.</p>
  
  <p>3.) My web page I can write my related text to a file from client's PC.</p>
  
  <p>4.) Any other way to send my related text to my .exe application.</p>
  
  <p>But I don't know how can I do:
  How can I copy to clipboard within firefox,
  How can I read FireFox's cookie from my .exe application,
  How can I create file in client's PC.</p>
  
  <p>Is there any way to communicate between my .exe application (in c++) and Firefox?</p>