Add new applications

Top  Previous  Next

How to create new applications

1.Click the "Help" menu
2.Select "Create Application Template"
3.Follow the steps in the Assistant

 

Supported applications are stored as ini files. Below you find detailed information for tweaking the templates.

Structure of an application INI file

[General]

Name=Application name

IsBrowser=1

AppExeName=yourapp.exe

AppWindowClass=class name

AppWindowCaptionSubStr=right( - YourApp)

GetNameUrlMethod=general(name,url)

RemoveFromCaptionLeft=[

RemoveFromCaptionRight=] - YourApp

Language=english,({Alt}f){$}a{$}<FILENAME>{Enter}

Language=german,({Alt}d){$}a{$}<FILENAME>{Enter}

Description

Name=

Name of the application. Usually the same name as the ini filename.

IsBrowser=

Set this value to 1 if the application is a browser. If this value is set then the internal method is enabled in Local Website Archive

IsIE=

Set this value to 1 if the application is Internet Explorer. For all other applications this value must not be set.

AppExeName=

Name of the application program file (without path). Needed to identify opened applications.

AppWindowClass=

Class name of the application. Needed to identify opened applications. You can get the class name from the Process-List dialog (help menu).

 

Optional functions:

left(STRING) ... where STRING defines a substring on the left side of the class name
right(STRING) ... where STRING defines a substring on the right side of the class name
substr(STRING) ... where STRING can be at any position in the class name

AppWindowCaptionSubStr=

Typical window title substring. Needed to identify opened applications.

 

Supported functions:

left(STRING) ... where STRING defines a substring on the left side of the window title
right(STRING) ... where STRING defines a substring on the right side of the window title
substr(STRING) ... where STRING can be at any position in the window title
exact(STRING) ... where STRING is the exact window title
(empty)
(not empty)

GetNameUrlMethod=

Method how Local Website Archive determines the name and the URL of a document.

 

Values:

general(name,url) ... general method to determine name and url
general(name,) ... general method to determine only the name
general(,url) ... general method to determine only the url
dde(<APP>) ... uses DDE to determine name and url (<APP> defines the DDE name of the application)

RemoveFromCaptionLeft=

If you choose the general method to determine name and url of a document (see setting above), then you can remove application substrings from the window caption. Enter the substring of the left side (if available) or let this setting empty.

RemoveFromCaptionRight=

If you choose the general method to determine name and url of a document (see setting above), then you can remove application substrings from the window caption. Enter the substring of the right side (if available) or let this setting empty.

ExtractNameFromDoc=

ExtractNameFromDocRegex=

ExtractNameFromDocDeleteRegex1=

ExtractNameFromDocDeleteRegex2=

Set the ExtractNameFromDoc value to 1 to initialize the document name from the archived document.

 

The ExtractNameFromDocRegex value extracts a string (via a regular expression) from the archived document, after that ExtractNameFromDocDeleteRegex1 and ExtractNameFromDocDeleteRegex2 are executed to delete portions from that string.

 

Finally, Local Website Archive removes HTML tags, CRLFs and duplicate blanks from the extracted string and saves it in the Name field of the document.

 

Example that extracts the name from the title tag of a HTML document:

ExtractNameFromDoc=1

ExtractNameFromDocRegex=<title>.*</title>

ExtractNameFromDocDeleteRegex1=

ExtractNameFromDocDeleteRegex2=

 

 

Example that extracts the name from a text file that starts with "Subject:" and ends with a CRLF:

ExtractNameFromDoc=1

ExtractNameFromDocRegex=subject:.*?(\r|\n)

ExtractNameFromDocDeleteRegex1=Subject:

ExtractNameFromDocDeleteRegex2=

 

InitUseApp=

Set this value to 0 if the application should be disabled initially.