Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

keystroke recorder

Status
Not open for further replies.

CharlieR

Programmer
Nov 30, 2001
2
US
Has anyone ever implemented a keystroke recorder feature for a Visual C++ app. Basically, I want to record a set of keystrokes to a file, and be able to read that file and play back the keystrokes.

I've started on a solution; however, I'm running into issues.

I tried capturing all the keystrokes that passes through the CWinApp's translatemessage. This seems to work.

However I have yet to figure out how to play the keystrokes back.

Any help is appreciated.
 
use setwindowshookex()..APIS for that as it will changes even default flow like this
.........
SetWindowsHookEx(WH_KEYBOARD,(HOOKPROC)MyHook,hNewInst,0);
..............
LRESULT CALLBACK MyHook(HWND hDlg, WPARAM wParam, LPARAM lParam)
{....
}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top