Click to See Complete Forum and Search --> : Replay of a session in Windows Application


shiva shankar
May 4th, 1999, 01:53 AM
Hi,
I have a general MFC application containing several menus, views, dialog boxes, wizards etc. I have a requirement where in I have to capture the events right from the beginning of a session capturing the menus invoked, dialogs invoked, buttons clicked, selections made, 3D operations performed etc (which will be recorded in a file called session file) till the application is aborted or exited. The user can open this file during the next session resulting in the playback of the previous session.How to implement the above requirement in a Event based environment like Windows.

Paul McKenzie
May 4th, 1999, 03:36 AM
You need to set a hook function to do this.

You'll find most of the info you need if you check out the following:

SetWindowsHookEx() using WH_JOURNALRECORD and WH_JOURNALPLAYBACK hooks.

JournalRecordProc(), JournalPlaybackProc().

Regards,

Paul McKenzie