Solved

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

Posted on 2008-10-30
2
305 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 

Accepted Solution

by:
SunnyShahMca earned 500 total points
ID: 22839936
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
ID: 22855724
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Clean Uninstall of VS Professional 2015 5 59
File Watcher and Deleter with Email notification 5 116
Is COM supported from Apache 1 74
Best book to learn C++ 4 87
This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

740 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