There are 5 new routines within the OSUTIL include file. The routines not only demonstrate how ESL can access operating system functions without the need for an intermediate wrapper library but also provide useful functionally that has been used to enhance the Development Tools supplied with this release of ESL.
•OS_ScrollToCursor scrolls the content of a specified dialog control, typically a Multi-Line Entry field to ensure the cursor if visible within the control.
•OS_SetCursorToLine moves the cursor to the first character within a specified line, for a specified Multi-Line Entry field.
•OS_SendMessageRef used to send a Window's Message where the address of variables need to be passed in the parameter fields, for example with Window's Message EM_GETSEL which returns the area selected within a dialog control.
•OS_GetCurrentDirectory returns a string containing the Window's current directory.
•OS_GetESLDirectory returns a string containing the directory where the ESL runtime is located.
Further operating system functions can be made available within the OSUTIL include file. Normally once a function has been identified, it is a relatively simple conversation of parameters to ESL equivalents. The use of OSUTIL functions is the recommend approach when attempting to obtain information or functionality from the operating system.