Results 1 to 2 of 2

Thread: SendKeys to menus in WindowsXP

  1. #1

    Thread Starter
    Hyperactive Member brenaaro's Avatar
    Join Date
    Sep 2001
    Location
    Montreal, Canada
    Posts
    391

    SendKeys to menus in WindowsXP

    My program uses SendKeys() to interact with another application's menu's (mostly Edit->Select All, Edit->Copy, and a couple other non-standard ones).

    This is the code that I use...
    VB Code:
    1. SendKeys "%EA", True ' Edit->Select All
    2.     SendKeys "%EC", True ' Edit->Copy
    and it works fine for every OS except WinXP!

    For some reason WinXP won't recognize (or has trouble recognizing) this, maybe it has to do with the fact that menu hotkeys are "hidden" until you hold ALT on the keyboard.

    Anyways, I've tried several diferent combinations of SendKeys but nothing seems to work so I'm wondering does anyone know of a way to find specific menu items in another window, and click those items? Maybe by API?

    Thanks
    And I, for one, welcome our new insect overlords. I'd like to remind them as a trusted TV personality, I can be helpful in rounding up others to toil in their underground sugar caves.

  2. #2
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Newbury, UK
    Posts
    1,878
    Upper case / lower case?? Try "%ea".

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