December 20, 2011
0

Sample Image - OfflineBrowser.jpg
While browsing a message board a few days back, I noticed that someone wanted a utility to download only selected files for offline browsing. Seemed to me like an useful tool to have, so I wrote one.
While IE does let you download files for offline browsing, you have no control over which files are downloaded, you may just want a few, not all of the pages. This utility will give you that control.
To run this application, you will require IE 4.01 or above, as it is based on the WebBroswer2 control provided by IE. What the app does is pretty simple. You can specify a list of file specifications (*.html, r*.htm, etc...) and then choose a start page to start downloading from. Also you can specify the number of levels you want to download. The default is 0, which is rather useless. So for e.g., if you ask for 2 levels - all links which match the specifications you have entered will be followed down to 2 levels.
The application by itself is based on a CHTMLView which creates an IE WebBrowserApp control and runs it. All I really have done is create a class CHTTPLineHolder which takes a LPDISPATCH (interface to a WebBrowserApp) and uses it to download pages into your local system cache.
So, the basic logic followed is as follows:
NavigateToPage - ( URL to navigate to )
{
    Store Page Into Cache
    GetAllLinksWithinPage 

    For Each Link which satisfies  File Spec given 
        NavigateToPage ( Current Link)

}
This by itself will download the file - but to store it, a couple of calls to the WinInet library have to be made. These calls get a cache file name and store the page into the file. As this file name is got through WinInet, any application (including IE) which uses WinInet can use this cache.
Also, the whole operation is done on a separate thread, so as to allow painting by the main view. So as each page is got, you get to see it in the main view window.
The methods which do the work are:
CHTTPLinkHolder::ReadPage(const CString& szUrl)
and
CHTTPLinkHolder::ReadPageIntoCache(const CString& szURL)
To use the application, first choose View | File Extensions.. and add or delete items from the list until you have only the specs you need. You can use wildcards here so, "*.htm", "a*b?c.htm" etc. are valid specs. Next, choose View | Start... You will be asked for a starting page and the number of levels to download, enter this info and click OK. And once this process is over, go to IE, make sure your Offline Browsing option is set and choose the same start page you entered in the application. And you should be able to view the files you downloaded. Exceptions of course are dynamic content files which may not be downloaded as expected.
So - Happy Offline Browsing.

USEFUL LINKS 
1.www.tricksnew.blogspot.com 
2.www.freeminiproject.blogspot.com 
3.www.freeplacementpaper.blogspot.com 
4.www.annaunivquestionbanks.blogspot.com

Labels

INTERNET (141) HACKING TRICKS AND TIPS (129) SYSTEM TRICKS (104) OTHERS (93) HOW TO (88) GPRS TRICKS (84) AIRTEL TRICKS (68) FREE GPRS (61) 4SHARED TRICKS (60) MOBILE TRICKS (56) HOT TRICKS (52) 3G TRICKS (50) TRICKSNEW (50) WINDOWS TRICKS (45) MOBILE HACKS (44) SOFTWARE (41) HACKING TRICKS (40) CALL TRICKS (38) MINI PROJECTS (35) FUN TRICKS (33) IEEE PROJECTS (31) FACEBOOK TRICKS (30) AIRCEL TRICKS (29) Mobile Tips (28) DOWNLOAD (27) COMPUTER TRICKS (26) AIRTEL 3G HACK(100%) WORKING (25) ALL NETWORK TRICKS (25) DOCOMO TRICKS (25) FREE SMS HACKS (23) PASSWORD HAKING (23) LEARN-HACKING TRICKS (22) OTHER PROJECTS (22) FREE CALL TRICKS (20) NOTEPAD (20) gmail (19) HACKERS (18) RELIANCE TRICKS (18) ANTI-VIRUS (16) TATA DOCOMO TRICKS (16) VIRUS (16) AIRCEL 3G HACK(100%) WORKING (15) IDEA TRICKS (15) BROWSING TRICKS (14) SMS TRICKS (14) account (14) FREE SMS WEBSITES (13) VODAFONE TRICKS (13) FREE FAKE MAIL (12) MOBILE SOFTWARE (12) secret code (12) E-MAIL (11) FREE SMS CRICKET ALERT (11) OPERA HACK (11) ACKING TRICKS (10) CRACKING TRICKS (10) INDIA MATCH LIVE STREAMING ONLINE FREE (10) BSNL TRICKS (9) E-MAIL BOMBERS (9) FREE FAKE CALLS (9) SERIALS (9) SMS BOMBERS (9) premium account (9) ALL RESULTS (8) CHEAT CODES (8) GAMES DESIGN PROJECT (8) HOTFILE TRICKS (8) MINI PROJECTS-CSE (8) MINI PROJECTS-MCA (8) MOBILE APPLICATIONS (8) MOBILE TV (8) SEND SMS NOW (8) SOURCE CODES (8) portable application software (8) CHINA MOBILE (7) FREE MOBILE TV (7) PAYPAL ACCOUNT HACK (7) TUTORIAL (7) TV ONLINE (7) BALANCE TRICKS (6) CHATTING TIPS (6) Free SMS Websites (6) GOOGLE+ (6) INTERVIEW (6) PLACEMENT TIPS (6) UNINOR TRICKS (6) WATCH TV FREE (6) YOU TUBE TRICKS (6) avoid hacking (6) MEMORY CARD (5) PAPER PRESENTATION (5) RESULTS (5) VOIP CALLS (5) command prompt (5) BLUETOOTH TIPS (4) EXAM DATES (4) LEARN-HACKING (4) MOST NEEDED TRICKS (4) SOURCECODE (4) TORRENTS (4) WEB PROJECTS (4) Amazon (3) E-BOOKS (3) FIREFOX (3) FREE CRICKET MATCH 2011 LIVE STREAMING (3) JOBS (3) MODEM (3) RECHARGE TRICKS (3) VIDEOCON TRICKS (3) VIRGIN TRICKS (3) ANDROID (2) BOMBERS (2) C#.NET (2) CRICKET LIVE STREAMING (2) FREE MOVIE DOWNLOAD (2) HR ROUND (2) IPHONE TRICKS (2) IPL MATCH FIXING (2) Inspirational Success Stories - Zero to Hero (2) JAVA CODE (2) MTNL (2) MTS TRICKS (2) Mobile Number Portability (2) ONLINE-FREE SHOPPING (2) PROJECTS (2) TATA INDICOM (2) YAHOO (2) Cashback (1) DCE (1) DOWNLOAD MENU (1) DTH TRICKS (1) FREE SUBSCRIPTION ALERTS (1) GRAMMAR (1) IMAGE TRICKS (1) LINUX (1) MATLAB PROJECTS (1) MICROCONTROLLER PROJECTS (1) MOTOROLA (1) Most Common Interview Mistakes to Avoid (1) NANOPARTICLES IN THE DRUG DELIVERY (1) ONLINE EARNING (1) PEN DRIVE (1) PHISHERS (1) RAPIDSHARE TRICKS (1) Swiggy (1) TECHNICAL JOKES (1) TOLL FREE CONTACT NUMBER LIST (1) UBUNTU (1) WHATSAPP HACK (1) Wi-Fi (1) Zomato (1)