Solved

SendMessage to 3rd Party Application's Menu

Posted on 2006-10-22
2
213 Views
Last Modified: 2010-05-18
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
Comment
Question by:GouthamRDodda
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
rajeev_devin earned 250 total points
ID: 17794015
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
 

Author Comment

by:GouthamRDodda
ID: 17801168
Thanks Rajeev.. i found the answer myself.. but still thanks for your time.. ill accept your effort
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question