Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

nextgengamer

sending commands to other windows

This topic is 6017 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all Im wondering if there is anyway to have a program that sends WM_ messages to other windows programs that are running at the same time. Anyhelp would be appreciated. Thanks NextGenGamer

Share this post


Link to post
Share on other sites
Advertisement
What you need is the handle of the window you want to send the messages to. Then you can use SendMessage, or PostMessage to deal with the actual sending.

To get the window handle, you can use something like FindWindow, or FindWindowEx.

Note that if you want to do something like (for example) moving the window to a different position, then sending a message isn''t the way you do it, in that case you''d use something like SetWindowPos, or SetWindowPlacement.
You would use messages to do something like making the window think that a menu item was clicked. But whatever you do, you''ll almost certainly need the window handle.

Hope that helps,

John B

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!