I think what you are looking for is the "FactorySuite Script Function Library".
It has the following functions:
The FactorySuite Technical Support script function library contains the following script functions for Wonderware® InTouch™ 6.0 and later for Windows NT 4.0. All script functions listed below are fully documented in the Descriptions section later in this topic:
Measurement Units Conversion:Area and Volume Calculations:StdFromMetLinear()GeoArea()MetFromStdLinear()GeoEqualSideArea()StdFromMetFluid()GeoVolume()MetFromStdFluid()StdFromMetWeight()MetFromStdWeight()Writing to a .INI File:Writing to the Spcex.ini FileINIWriteString()SPCEXSetStartDate()INIWriteInteger()SPCEXSetStartTime()INIReadInteger()SPCEXSetEndDate()INIReadString()SPCEXSetEndTime()SPCEXSetProduct()SPCEXSetDataset()SPCEXSetOutputFile()Tag Support Functions:File Name Creation:TagExists() CreateFilenameFromDate() GetDiscOnMsg() GetDiscOffMsg() SetTagEU()Miscellaneous Script Functions:WWShutDownWinNT40()WWShutDownWin95() SystemIsNT()WWBeep32()WWCntx32()