URL of Current Page  
Author Message
Thomps





PostPosted: Internet Explorer Extension Development, URL of Current Page Top

Hi,

I'd like to add an IE toolbar/menu item that performs a action based on the url of the current ie page. My assumtion was that I could run an external app something like the following:

execute.exe %currentUrl%

but I haven't had any luck tracking down a solution. Please let me know if there is a variable available or a way I can accomplish this using c#. A link to an example would be appricated if possible.

Note: I'm new to IE addons and fairly new to c#/.net so if I'm barking up the wrong tree feel free to direct me to a different tree (ie. approach)

Thanks,

Thomps



Internet Explorer Development4  
 
 
Reza Nourai - MSFT





PostPosted: Internet Explorer Extension Development, URL of Current Page Top

I'm a little confused at what exactly you are trying to do here. Are you hosting an WebBrowser control in your C# app If so, you can use the control.URL property.

If this isn't what you are doing, please explain a little more and I'll see if I can point you in the right direction.

-Reza


 
 
Jeremy Epling - MSFT





PostPosted: Internet Explorer Extension Development, URL of Current Page Top

There is no way to pass command line parameters to executables that are launched from a toolbar button or menu item. If you want to get any info about the current tab and use that in your toolbar button/menu item extension you need implement the extension using JavaScript or COM.

http://msdn.microsoft.com/library/default.asp url=/workshop/browser/ext/extensions.asp