How to create hyperlink in the page already opened?

J

Jack

Steve, I appreciate your willingness to help, but you still do not
understand what is all about.
And really, you do need to have Skype installed to grasp the concept.
None of elements (or variations) mentioned in:
http://msdn2.microsoft.com/en-us/library/aa752040.aspx
will do what I am looking for.
If this can be any help please have a look at this Skype video
demonstration:
http://www.screencast.com/users/Sky...lt/media/79201252-d26a-4e84-a0cb-ec425b4522d8
(just wait a while until the highlighted phone numbers on web page will
appear).

Jack
 
S

Steve Easton

Ok
I watched the demo. Instead of a clickable item on the right click context menu,
they've added an icon to the IE toolbar, which is basically the same procedure.
The icon fires either a .dll or an .exe that scans the pages.
The process to add an Icon and function to IE's toolbar is called creating a browser extension:
the info is here: http://msdn2.microsoft.com/en-us/library/aa753587.aspx

Creating the process that it fires is called creating a Browser Helper Object or BHO
as Stefan mentioned: http://msdn2.microsoft.com/en-us/library/bb250489.aspx
or creating a custom web Browser control as I mentioned:
http://msdn2.microsoft.com/en-us/library/aa752044.aspx

Do you have Skype installed?
If so, run regedit and go here:
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Extensions
and look through the list of Extensions and you will see the registry entries
used when the Skype icon is clicked, to fire either the .dll or .exe that Skype
uses to parse the page and highlight the numbers.

Also fwiw, I have written an IE add in and wrapped it in an installer
that adds an IE toolbar Icon that launches the program I wrote.
( custom web browser control )

What programming languages are you using / do you have available,
and also, do you have any of the MSDN libraries installed on your machine?

If you want a sample of what I wrote, email me. My reply to is valid.
( it works in all IE versions on 2K, XP and Vista )

--

Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm
 
J

Jack

Thank you very much for bearing with me, Steve.
I can use as much help as I can get.
I think I will have problem with BHO.
I have read some info about it on MSDN site and it seems it requires COM
programming.
My programming language is visual basic.
I am using version 5 (enterprise), which I prefer over version 6 which I
also have.
What do you think, can I use it to program BHO?
I do not keep any MSDN libraries in my computer, but I access them on MSDN
website when needed.
Thanks,
Jack
 
S

Steve Easton

Jack said:
Thank you very much for bearing with me, Steve.
I can use as much help as I can get.
I think I will have problem with BHO.
I have read some info about it on MSDN site and it seems it requires COM programming.
My programming language is visual basic.
I am using version 5 (enterprise), which I prefer over version 6 which I also have.
What do you think, can I use it to program BHO?

Yes you sure can use VB 5 to create either a BHO or a custom
web browser control.
I do not keep any MSDN libraries in my computer, but I access them on MSDN website when needed.

That's going to make it kind of tough because the last MSDN version
with the best VB support was October 2001, and the current online
version has only VB.NET support.

However there is a great VB newsgroup.
Subscribe to:
microsoft.public.vb.general.discussion

and maybe also:
microsoft.public.vb.controls
microsoft.public.vb.winapi

A great source of VB info is Randy Birch's website:
http://vbnet.mvps.org/index.html
and there are several others.
Randy's site contains links to them.

Regards and good luck.
fwiw I use VB 6 SP 1 on both XP
and Vista.

Have you created a manifest file so that the IDE uses XP styles?


--

Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm
 
J

Jack

Thanks for the info.
I cannot find answer to these questions:
1.
Do I need an icon placed on IE taskbar (to do what I want to do)?
2.
Is that a requirement for BHO?
3.
Why there is that convulsing method of creating GUIDS etc, instead of just
making a simple entry into registry?
4.
Creating button running a script
-------------------------------
does it apply to java script or some other script?
is it possible to make IE to run that script automatically (without clicking
on that button)?

Thanks,
Jack
 
S

Steve Easton

In Line.

Jack said:
Thanks for the info.
I cannot find answer to these questions:
1.
Do I need an icon placed on IE taskbar (to do what I want to do)?
No, an icon is not mandatory, you can add an entry in the Tools dropdown menu.
However, adding an icon to the toolbar is a simple task that is done
by the installer when you install your program / BHO, and having a visible
icon is much easier for the user to see / find / click.

I use Inno Setup as my installer.
2.
Is that a requirement for BHO?
No, the answer to 1 applies.
3.
Why there is that convulsing method of creating GUIDS etc, instead of just making a simple entry into
registry?

Because that's the only way Internet Explorer will honor the additions to it's
menus and toolbar.
If you have Visual Studio installed along with your VB 5, you have a program that will create your GUID
for you
It's called GUIDGEN.EXE and lives in C:\Program Files\Microsoft Visual Studio\COMMON\Tools
4.
Creating button running a script

I "think" it could be done with javascript.
remember the old IE 5 web accessories tool?
It had functions called from the IE context menu which
were nothing more than javascript in a html file. One of them
allowed you to highlight text in a page and since I still have it / use it
so here is the script in it's entirety. It's contained in a file named highlight.htm
which lives in C:\WINDOWS\Web:
<HTML>
<script LANGUAGE="JavaScript" type="text/javascript" defer>
var parentwin = external.menuArguments;
var doc = parentwin.document;
var sel = doc.selection;
var rng = sel.createRange();
var str = new String(rng.text);
rng.execCommand("BackColor",0,"YELLOW");
</script>
</HTML>
and is called by the entry in this registry key:
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt
the entry is simply: C:\WINDOWS\WEB\highlight.htm
set as the default value.

This method does not require a GUID
is it possible to make IE to run that script automatically (without clicking on that button)?

Not a script that's external to the website for the page that's being loaded.
Meaning a script that's contained on the users system
IE can only run a script that's contained or referenced within the document that's loaded,
being loaded.
Unless........ it's added as a valid addin in IEs addin list.

Something else to keep in mind, all bets are off for something like
this working in Vista.


--

Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top