Results 1 to 5 of 5

Thread: Need to capture menu clicks in Office apps!!!!

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Posts
    60

    Unhappy

    Hi,

    I need to capture menu clicks in all the office application ie. Edit->Undo, Help etc.

    Does anyone have any ideas.
    Barend
    JHB-SA

    Nothing is impossible, except skiing through a revolving door.

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    I think you need to subclass.

    [Edited by oetje on 10-03-2000 at 09:05 AM]

  3. #3
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    You're talking about something that doesn't belong to your thread and unfortunately VB cannot subbclass something from other threads. You will have to use C/C++ for that.

  4. #4

    Thread Starter
    Member
    Join Date
    Aug 2000
    Posts
    60
    Do you have any idea where I can get some examples of C/C++ code to do this? Can I write a component for my COM AddIn or do I have to write another AddIn in C?
    Barend
    JHB-SA

    Nothing is impossible, except skiing through a revolving door.

  5. #5
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Originally posted by Serge
    You're talking about something that doesn't belong to your thread and unfortunately VB cannot subbclass something from other threads. You will have to use C/C++ for that.
    You can use a c++ dll that does the subclassing for you in your vb program. You can get some examples on that here: www.vbaccelerator.com.

Posting Permissions

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



Click Here to Expand Forum to Full Width