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
- Download
the Itappinf.zip file from the Knowledge Base™ to your local hard drive. - 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.
- When you restart your application, the script functions should be listed
The following section describes the individual script functions.
Descriptions
GetResolutionStr()
void GetResolutionStr(LPTSTR res);
- Gets the resolution of the current InTouch application in a
width-by-height formatted string. - A Memory Message tag will hold the resolution string.
- 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);
- Gets the resolution of the current InTouch application in a
width-by-height format as integer values. - Two Memory Integer tags will hold the resolution as integers.
- 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);
- Gets the InTouch application version as a formatted string.
- A Memory Message tag will hold the InTouch application-version string.
- 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);
- Gets the operating system version as a formatted string.
- 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);
- Gets the time and date as a formatted string of the last time that the
InTouch application was saved. - A Memory Message tag will hold the time-and-date string.
Return value: None
Example:
GetLastSaveDate(Updated);
- Where Updated is a Memory Message tag.