Results 1 to 4 of 4

Thread: Code to access menus

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2001
    Posts
    2

    Exclamation Code to access menus

    Hello,
    I'm working on a program for a friend which has to access menus to get a form. I can't fingd a way to do it
    Please Help me !!!
    JD

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    What menus have to be accessed?

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2001
    Posts
    2

    Smile

    I need to access the yahoo messenger menus

  4. #4
    Hyperactive Member
    Join Date
    Jul 2000
    Posts
    352

    Concept I used...

    When I was working with accessing the menu's of other programs, I used Spy++. Monitor the window with the menu for all wm_command messages. When one is executed, it will give you the parameter. Then to execute it(as if the user selected it), you use:

    Code:
    PostMessage(arrays[0], WM_COMMAND, MAKEWPARAM((0, spyValue), 0), 0) ;
    Unforunately, this is the c++ code I used. I was unable to find anything for making a wparam in vb. If you find one, I'd like to know. I found it was much easier to use c++ for interacting with other applications if you are using straight api and then designing a vb front end that shells the program if necessary. Hope this helps.

    Joe

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