Consulting

Results 1 to 3 of 3

Thread: How to simulate mouseclicks for CommandBarButton object?

  1. #1

    How to simulate mouseclicks for CommandBarButton object?

    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

  2. #2
    VBAX Master TonyJollans's Avatar
    Joined
    May 2004
    Location
    Norfolk, England
    Posts
    2,291
    Location
    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.
    Enjoy,
    Tony

    ---------------------------------------------------------------
    Give a man a fish and he'll eat for a day.
    Teach him how to fish and he'll sit in a boat and drink beer all day.

    I'm (slowly) building my own site: www.WordArticles.com

  3. #3
    Hi Tony,

    Thanks a ton for your thought.

    Thanks in Advance.
    --AK.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •