Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 3rd, 2004, 11:19 AM
Authorized User
 
Join Date: Jun 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to sidneyfuerte Send a message via AIM to sidneyfuerte Send a message via MSN to sidneyfuerte Send a message via Yahoo to sidneyfuerte
Default Need Guidance and Suggestion on my BIG Idea

My final is coming very soon and my professor is asking us for a new project that is unique. One day while surfing the web... I noticed my MSN toolbar "Highlight" which gave me an idea on what project I will submit to my professor.

Please let me know if my idea is too broad or impossible. I want to create a windows application that runs in the background (form less) of any browser (ie.. netscape etc.). The program will Intercept any HTML page that a browser loads from the internet and read this html ...then search for a particular string and then Highlight it (bolded and with different color) before sending to the browser. The text that i need to search in every page can just be declared in a text file or even hard coded in the program, just so i can show something that my search and hightlight feature is working.

Is this possible? I'm only using VB 6.0 right now but i'm willing to go to .NET if i need to... does VB 6.0 capable of this kind of project? or VB.NET? or i need to use something else?

Any help or suggestion will surely be appreciated.

Thanks/Regards
Sidney
__________________
Thanks/Regards
Sidney
 
Old September 6th, 2004, 10:36 AM
Authorized User
 
Join Date: Jun 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to sidneyfuerte Send a message via AIM to sidneyfuerte Send a message via MSN to sidneyfuerte Send a message via Yahoo to sidneyfuerte
Default

ummm.... I was hoping i'll get a reply by the time i come back :D but seems there's none.

Please I really need help on this one, anybody?

Thanks/Regards
Sidney
 
Old September 6th, 2004, 11:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Don't be offended, it isn't because people are ignoring you, it is probably because no one knows how to do it.

The way I see it, there are 2 ways of doing what you want to do, one is to hook directly into the browser API's and manipulate the HTML using some kind of DOM traversal. However you say you need it to work in any browser, so it would be impossible to code your solution this way to handle every browser ever invented and also provide future compatibility.

The other way is to intercept the browsers request for the web page before the reply is sent to it and change the HTML there and re-send it on to the browser, this would be similar to the way that antivirus program's work, they scan the document (web page, email etc.) for malicious code and filter it out before the browser or email client even sees it.

The problem with these 2 ideas is that I have no idea how it could be done, I wouldn't even know where to start.

Finally, just parsing the HTML looking for text that is displayed would be hard enough, let alone changing the attributes of certain pieces of text. You must remember that some people write very sloppy HTML code that does not conform to the standards, however some browsers still manage to display it correctly, therefore you would need to account for this browser logic as well. Also you would need to consider how CSS and JavaScript (and perhaps VBScript) would affect the display of these pieces of text. You would also need to consider how scripts (e.g. JavaScript) would alter the display and even add to the display after the page has been loaded.

In my (fairly humble) opinion your idea does exist in the realms of impossibility. However if you do crack it then I think I speak for most of the forums users when I ask you to let us know.

Regards
Owain Williams
 
Old September 6th, 2004, 12:35 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there...

looks like all you need to do is a proxy... that way you will conect the explorer, netscape or whatever to your proxy, do the request, then parse the incoming html and change the text you want...



HTH

Gonzalo
 
Old September 7th, 2004, 04:20 AM
Authorized User
 
Join Date: Jun 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to sidneyfuerte Send a message via AIM to sidneyfuerte Send a message via MSN to sidneyfuerte Send a message via Yahoo to sidneyfuerte
Default

Hi Gonzalo,

Re: proxy, ummm... the application i'm building should be stand alone, its should be install in the client's pc. Is it possible to install a proxy that only works on the pc where it is installed? proxy it self kinda thing?

All I really need to do is intercept all HTML pages... parse it (search for a particulart string) then replace it with something from my list. We will use this project as a proposal to marketing strategy. Please let me know if you need more details why i want this project to be done. I want to inform everybody in advance that I am not planning on building a spyware... I want to help marking people in this school project of mine.

Thanks/Regards
Sidney
 
Old September 7th, 2004, 08:40 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

yes you can have an stand alone proxy for one pc.. i do one back in the uni for a curse too :)

you intercept the incoming HTML and re parse it...

HTH

Gonzalo
 
Old September 7th, 2004, 11:22 PM
Authorized User
 
Join Date: Jun 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to sidneyfuerte Send a message via AIM to sidneyfuerte Send a message via MSN to sidneyfuerte Send a message via Yahoo to sidneyfuerte
Default

Hi Gonzalo,

Your an angel sent down from heaven :) can you share you code if you have one? i really need this project to be done. oh pls pls pls :)

Thanks/Regards
Sidney
 
Old September 8th, 2004, 08:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

i dont have any code.. it was made in plain C for linux... i throw it away once we done it.. im not very proud of that code...

but i will glad to help you with any problem..

HTH

Gonzalo
 
Old October 20th, 2004, 12:19 PM
Aal Aal is offline
Authorized User
 
Join Date: Oct 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

wow that's amazing concepts sidney_fuerte !!
Gonzalo --> can i have the sample even thats in C program and the code pls.
( for Sidney_Fuerte ) -- > Even in vb's you can do that, but the speed of your
programs are low, try the API's in a simple program that can capture all IP and imagine with your concepts if you made it in VB 6.0 - Pro


 
Old October 21st, 2004, 09:27 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

sorry aal.. but like i said i throw it away once i finish it...

HTH

Gonzalo





Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Guidance gopichaithanya C# 6 February 9th, 2007 04:57 PM
Brilliant idea, no idea how! imaginitive-idea-guy Ajax 9 January 14th, 2007 05:32 AM
need guidance please samanta103 Intro Programming 2 March 16th, 2006 01:08 PM
Guidance required whyvenky General .NET 0 February 26th, 2006 03:03 AM
Need guidance Newkid Classic ASP Components 4 July 27th, 2004 04:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.