Keystroke Sequence Tracing During Runtime

0 Likes

This article describes how to record in a trace file, which keys are hit by the user while the application is running.

Problem:

Is there a way to record in a file, the sequence of keys hit by the user while the application is running?

Resolution:

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

Old KB# 14347
Comment List
Related
Recommended