InTouch Application Info Script Function Library

Posted on 352 views

The InTouch™ Application Information script function library contains a set
of functions that obtains:

  • the application resolution
  • the application version
  • the Windows OS version of the computer on which the applicaton is running
  • the time and date of when the application was last saved

Note: The InTouch Application Info script
function library is 32-bit, and is supported only by InTouch 7.0
on Windows 95, Windows 98, and Windows NT
platforms
.

Installing the InTouch Application Info Script Function Library

  1.  Download
    the Itappinf.zip file
    from the Knowledge Base™ to your local hard drive.
  2. Unzip the files, ITAppInf.dll,
    ITAppInf.wdf, and ITAppInf.doc, to your
    InTouch application directory.

    • When you restart your application, the script functions should be listed
      alongside of the other InTouch script functions.

The following section describes the individual script functions.

Descriptions

GetResolutionStr()

void GetResolutionStr(LPTSTR res);

  1. Gets the resolution of the current InTouch application in a
    width-by-height formatted string.
  2. A Memory Message tag will hold the resolution string.
  3. GetResolutionStr() reads the Win.ini file and requests
    the default InTouch application directory to obtain the resolution information
    from the Vers_res.inf file and writes it to the supplied tag.

Return value: None

Example:

GetResolutionStr(ResolutionStr);

  • Where ResolutionStr is a Memory Message tag.

GetResolutionInt()

void GetResolutionInt(int* width, int* height);

  1. Gets the resolution of the current InTouch application in a
    width-by-height format as integer values.
  2. Two Memory Integer tags will hold the resolution as integers.
  3. GetResolutionInt() reads the Win.ini file and requests
    the default InTouch application directory to obtain the resolution information
    from the Vers_res.inf file and writes it to the supplied
    tags.

Return value: None

Example:

GetResolutionInt(ResWidth, ResHeight);

  • Where ResWidth and ResHeight are two Memory Integer tags.

GetAppVersion()

void GetAppVersion(LPTSTR ver);

  1. Gets the InTouch application version as a formatted string.
  2. A Memory Message tag will hold the InTouch application-version string.
  3. GetAppVersion() reads the Win.ini file and requests the
    default InTouch application directory to obtain the version information from
    the App.ver file and writes it to the supplied tag.

Return value: None

Example:

GetAppVersion(AppVersion);

  • Where AppVersion is a Memory Message tag.

GetOSVer()

void GetOSVer(LPTSTR OSVer);

  1. Gets the operating system version as a formatted string.
  2. A Memory Message tag will hold the operating-system-version string.

Return value: None

Example:

GetOSVer(OSVersion);

  • Where OSVersion is a Memory Message tag.

GetLastSaveDate()

void GetLastSaveDate(LPTSTR LastSaved);

  1. Gets the time and date as a formatted string of the last time that the
    InTouch application was saved.
  2. A Memory Message tag will hold the time-and-date string.

Return value: None

Example:

GetLastSaveDate(Updated);

  • Where Updated is a Memory Message tag.

Leave a Reply

Your email address will not be published. Required fields are marked *

12 + = 18