Sending text as parameter to a C# application

  • Thread starter Thread starter CoolWriter
  • Start date Start date
C

CoolWriter

Hi,

While exploring web, I want to send the selected text as a parameter
to my application. How can I do this?

For instance: When I right click the selected text, my application's
name should be listed in the context menu and when I click the name,
the selected text should be send to my application as a parameter.

How can I do this? I need some ideas about this subject.

Thanks.
 
I don't think that the IE browser will allow you to add anything to the
context menu. Have you looked into Opera or one of the open source
browsers?

--- Nick

CoolWriter said:
Any idea?
 
I don't think that the IE browser will allow you to add anything to the
context menu. Have you looked into Opera or one of the open source
browsers?

If he can't get to IE's context menu he may use the standard text copy
option and have his app poll the clipboard for new text. Not super elegant,
he would have to be concious about it, activate his app before starting a
"browse session" and stop it when he is done but it would be relatively easy
to implement and work quite effectively. His app would take the text (or any
other CF_ type for that matter), clear the clipboard and wait for the next
content to be copied. He would have a separate thread queueing up copied
content and another one processing it.

How does this suite your needs, CoolWriter?

Martin.
 
Back
Top