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