Link to home
Start Free TrialLog in
Avatar of Stanciu
Stanciu

asked on

Internet Explorer and contextual menu

I need to add in Internet Explorer an option in standard contextual menu; when the user

right-clicks a link in a navigable document, a program start. Did anybody already made it?

What interfaces I have to implement, or can I use BHO?

Thanx,
H
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Stanciu
Stanciu

ASKER

I saw this MSDN example, but it is limiting. I have to write a JavaScript snippet, but I can't start an exe from inside. If you know how to do this, please tell me. I am more interested in a COM /BHO solution.

Thank you for your help,
H
You could also see mikeblas' HOLDER sample at

http://www.nwlink.com/~mikeblas/samples

or the MFC 'Driller' sample at
http://msdn.microsoft.com/Downloads/samples/Internet/browser/driller/sample.asp

(credits to chensu for mentioning these earlier)
BTW: Another interesting information source might be

http://support.microsoft.com/support/kb/articles/Q172/7/63.ASP ("INFO: Accessing the Object Model from Within an ActiveX Control")
Avatar of Stanciu

ASKER

I'm a COM\ATL rookie; can you give me more hints?
Thanx,
H
Hi,
U say
"I have to write a JavaScript snippet, but I can't start
an exe from inside"
I think u should write a COM object.U create this object
use JavaScript.This COM do the thing u want,such as run a program.

follow the step:
1.make your COM object,it should do the thing u want
2.when install your program,register the COM & add the
  additional items to the IE context menus.
  jkr has told u how to.
3.write the html page with javascript.it should be install
  with your main program and the additional item at IE
  context menus should point to it.

that's all.
U know,many program do it like this.U can also get the IE Document Objects to do some cool things.

 
Admin notified of user neglect. Force/accepted by

Netminder
Community Support Moderator
Experts Exchange