Click here to Skip to main content
15,897,518 members
Articles / Programming Languages / C++

Recording mouse and keyboard events and playing them back

Rate me:
Please Sign up or sign in to vote.
3.73/5 (7 votes)
8 Jul 2007CPOL1 min read 68K   7.5K   37  
The application records user input events into a file and plays them back when required.
#ifndef __RECORDER_DLL_
#define __RECORDER_DLL_
#include <windows.h>

#ifdef _RECORDER_DLL_PROJECT_
__declspec(dllexport) HHOOK install_recording_hook(DWORD thread_id);
__declspec(dllexport) HHOOK install_playing_hook(DWORD thread_id);
__declspec(dllexport) void stop_recording();
#else
__declspec(dllimport) HHOOK install_recording_hook(DWORD thread_id);
__declspec(dllimport) HHOOK install_playing_hook(DWORD thread_id);
__declspec(dllimport) void stop_recording();
#endif



#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions