Using Files Containing Keystrokes

W$KEYBUF library routine behavior is slightly different in thin client environments than in the distributed processing environment. This routine lets you create files of keystrokes that can be played back to simulate user input. Specifically, W$KEYBUF op-codes 7, 8, and 9 have a different implementation in thin client. In a thin client environment, these files of keystrokes are created in a temporary cache file on the thin client machine, then uploaded to the server when recording stops (op-codes 7 and 8). When a file is to be played back, the thin client requests that the file be downloaded from the server to the client's temporary cache directory, as specified in the TEMP environment variable. If TEMP is not set, the files are stored in the thin client's current working directory. The file is not downloaded again unless it is changed on the server or deleted from the client.

More information about the W$KEYBUF library routine can be found in the appendix "Library Routines " in ACUCOBOL-GT Appendices.