Recording Button Clicks
-
Is there a way (Windows API etc) to record the names of the buttons that a user clicks? I want to be able to press record, and then in other applications tell what is being pressed. Like in the "Setup" Window the left mouse button was clicked on the "OK" button. I want to do this so that I can automate documentation of installation procedures. Anyone have any ideas how I can hack the windows to capture these events? thanks L
-
Is there a way (Windows API etc) to record the names of the buttons that a user clicks? I want to be able to press record, and then in other applications tell what is being pressed. Like in the "Setup" Window the left mouse button was clicked on the "OK" button. I want to do this so that I can automate documentation of installation procedures. Anyone have any ideas how I can hack the windows to capture these events? thanks L
Use SetWindowsHookEx() with the hook type set to WH_GETMESSAGE. Intercept the WM_LBUTTONDOWN events and use GetWindowText() to get the text of the window clicked. You would also need to identify the class of the window(eg. BUTTON) using the GetClassName() function. Bikram Singh