PDA

View Full Version : How to simulate mouseclicks for CommandBarButton object?



AK3003
11-17-2008, 03:13 AM
Friends,

Am in a process of automating MS Office Word applications using VBScript and my requirement is to simulate mouse click operations for CommandBarButton objects.

Whereas I can call CommandBarButton.Execute method, it does pause VBScript execution until its operation is completed, a synchronized call. Here I just need to do a mouseclick on the CommandBarButton and proceed further, am looking for an asynchronized call.

Can somebody please let me know how to simulate mouseclick on the CommandBarButton?

Thanks in Advance.
--AK

TonyJollans
11-17-2008, 05:18 AM
This is not trivial. And nothing to do with the CommandButton, or even Word, directly. I don't know how to do it - or even if it's possible - but you will need to use Windows APIs; I suggest you try to ask in a Windows API group somewhere.

AK3003
11-17-2008, 10:49 PM
Hi Tony,

Thanks a ton for your thought.

Thanks in Advance.
--AK.