Application Delivery Management
Application Modernization & Connectivity
CyberRes
IT Operations Management
This article describes how to record in a trace file, which keys are hit by the user while the application is running.
Is there a way to record in a file, the sequence of keys hit by the user while the application is running?
There is an ACUCOBOL-GT library routine called W$KEYBUF that can be used to record keystroke sequences.
To activate keystroke sequence recording and save in a text file, simply run this code in your application:
CALL "W$KEYBUF" USING 7, FILE-NAME
To stop the recording, use this code:
CALL "W$KEYBUF" USING 5
W$KEYBUF can also be used in Thin Client mode.
The W$KEYBUF library routine is documented in the ACUCOBOL-GT Appendices manual, Appendix I.
Incident Number: 2114758