Solved

How to capture user actions on MS Word Command Bars, Menus, Dialogs.

Posted on 2008-10-30
2
299 Views
Last Modified: 2013-11-25
How to capture user actions on Microsoft Word Command Bar, Menus, Dialogs.?

It is possible as Adobe Captivate does a pretty good job in capturing/logging the user actions.
For example, it can identify that user selected the Home tab and then the user clicked the launch of Font Dialog.
It can also determine which buttons in the Font Dialog are clicked.

Is there any interface/COM Interface that Microsoft Office provides to the developer which helps in logging user actions.
0
Comment
Question by:ashugarg00
  • 2
2 Comments
 

Accepted Solution

by:
SunnyShahMca earned 500 total points
Comment Utility
There are two possible ways I can think of:
1.  A. Call GetTopWindow to get the topmost window on the desktop.  Thats where the mouse must have been clicked.  Identify the class name of this window by GetClassName.
B.  Depending on the class name, you know if the class supports COM automation.
C. Get the IDispatch pointer to this window by GetActiveObject, and from here you can do pretty much what you want.  This will work for many applications including all of MS Office.  Unfortunately, it is very hard to make it work for IE, because you have to do extra work ('Helper Objects') in order to get a valid pointer from GetActiveObject for an IE window.

2.  Some simple applications use ordinary controls that you can just get hold of an grab the text.  The obvious example is notepad - just take a handle to the window, enumerate its child windows and get hold of the edit box.
0
 

Expert Comment

by:SunnyShahMca
Comment Utility
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now