Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 219
  • Last Modified:

SendMessage to 3rd Party Application's Menu

Hi Experts.. can anyone please guide me with a example of simulating a key stroke (Ctrl + M) in another application.
iam able to control the 3rd party application's buttons, checkbox... etc other than Menu.. iam having praoblem getting access to menus from my programm...

 ----------------                        ----------------------
|                   |                       |    3rd Party App
| my APP       | ---------------> | Menu
|                   |                       |
----------------                         ---------------------

Can anyone please tell me as soon as possible

0
GouthamRDodda
Asked:
GouthamRDodda
1 Solution
 
rajeev_devinCommented:
You need to send WM_MENUSELECT message to the owner window.

Check this for help:
http://windowssdk.msdn.microsoft.com/en-us/library/ms646352.aspx
http://tols17.oulu.fi/~vtatila/ohjy/english/ohjy38.html
0
 
GouthamRDoddaAuthor Commented:
Thanks Rajeev.. i found the answer myself.. but still thanks for your time.. ill accept your effort
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now