Solved

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

Posted on 2008-10-30
2
308 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
link access with Quickbooks 9 74
VBA Error Since Excel 2016 x64 5 168
Trouble installing msi file with msiexe.exe 2 51
MDT Create a bootable media for BIOS 2 25
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…

739 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