Solved

Home grown favorites

Posted on 2004-10-23
203 Views
Last Modified: 2010-04-05

Within chm help for the platform SDK you can add a topic to favorites .. this ends up going to C:\Documents and Settings\Mutley2003\Favorites (under XP)
with an entry like
ms-help://MS.PSDK.1033/fileio/base/findfirstchangenotification.htm

two questions

1. How do I build a chm file so that it will allow adding favorites

2. If I want to add favorites from my Delphi app that are NOT web urls or locations within a chm file, how could I do it. Say for example that I had a database of code snippets

how could I do
MyCodeSnippets://whateverThisIs/someTopicGroup/SomeKeyword
ie add that to C:\Documents and Settings\Mutley2003\Favorites
and have a click on that (eg from Explorer or IE) invoke my app and do nice lookup stuff?


0
Question by:Mutley2003
    7 Comments
     
    LVL 7

    Expert Comment

    by:DavidBirch2dotCom
    hum... nobody  seems to know.... well here are some intersting links on this topic which might help

    http://www.west-wind.com/wwHelp/docs/_031011KAJ.htm
    http://cwashington.netreach.net/depo/view.asp?Index=949&ScriptType=vbscript
    http://www.freewarehome.com/Programming/Help_File_Tools_p.html

    if you already have a .chm help file - make it HTML friendly with this -
    http://chm2web.aklabs.com/

    http://www.paperkiller.com/
    http://www.thefreecountry.com/programming/helpauthoring.shtml
    http://www.gold-software.com/download3145.html

    I think your best bet is to find a free tool to create a .chm file then use the above link to make it HTML friendly

    sorry I cant be of more assistance

    David
    0
     

    Author Comment

    by:Mutley2003
    hmm, well thanks for all that chm info but I don't think I yet know

    a) how to build a chm file that will allow adding favorites.

    however the west-wind link above says
    "
    Help 2.0 is Microsoft's developer help engine that is used for MSDN and Visual Studio. It has a separate viewer. Help 2.0 does not have real desktop help engine support as CHM does, so it's not really meant for end user documentation although you can make it do that if you really want to. Help 2.0 requires that the MSDN viewer is installed. This help format is primarily meant for developer documentation that needs to plug into MSDN or Visual Studio .NET. Installing Help 2.0 files requires registration and some external tools which makes distributing these files somewhat difficult.
    "

    so it may be that we simply cannot do what I want with html help 1.. the standard chm.

    b) it remains an open question as to whether I can do

    "MyCodeSnippets://whateverThisIs/someTopicGroup/SomeKeyword
    ie add that to C:\Documents and Settings\Mutley2003\Favorites
    "

    this looks rather like pluggable protocols, see

    http://www.euromind.com/iedelphi/toolbox/ierestool.htm
    http://www.devarchive.com/f1076.html
    http://website.lineone.net/~doogal/plugprot.htm

    these are all IE related, but it is possible to add favorites from Explorer and apparently from other apps - if I knew how
    0
     
    LVL 7

    Expert Comment

    by:DavidBirch2dotCom
    you can initialy create a .chm file with one of the programs on this site
    http://www.softpedia.com/public/cat/6/4/6-4-14.shtml

    you can then turn that chm file into a HTML help using the below program
    http://chm2web.aklabs.com/

    you should then be left with something like this
    http://chm2web.aklabs.com/help/src/work/tmplbody.htm

    which would run in IE, and you could then add to favorites from thier- no plu-ins necessary ... I think when running it localy you might get a URL looking more like MyCodeSnippets://whateverThisIs/someTopicGroup/SomeKeyword

    you could then launch that from the delphi application using code from this thread
    http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_21023756.html

    -------------------------------

    to create a URL link:

    you will need to find the favorites folder for the default browser and in it you will need to save a file with the extention .URL

    the format of the file should be -

    [DEFAULT]
    BASEURL=http://www.google.com/

    [InternetShortcut]
    URL=http://www.google.com/
    Modified=E0099FC4A6A4C4015B


    I am unsure how the modified bit is worked out but the other two seem easy enough :)  the name of the file is what will be shown on the favorites list...

    David
    0
     
    LVL 7

    Accepted Solution

    by:
    this link provides the info you need to create the file
    http://www.cyanwerks.com/file-format-url.html

    David
    0
     
    LVL 7

    Expert Comment

    by:DavidBirch2dotCom
    0
     

    Author Comment

    by:Mutley2003
    ok, I still don't know enough to create my own protocol, but there is some good info there - particularly the URL file format link

    thanks
    0
     
    LVL 7

    Expert Comment

    by:DavidBirch2dotCom
    Thanks for the points sorry I couldnt be of more help
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.

    933 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now