Solved

Send Message to another application

Posted on 1998-07-13
3
692 Views
Last Modified: 2013-12-03
Can I send a message to a window that belong to another application?
How to get this window's handle?
hbh
0
Comment
Question by:hbh
  • 2
3 Comments
 
LVL 22

Expert Comment

by:nietod
ID: 1410021
Yes you can.  How you get the handle depends on the circumstances, that is, it depends on what you are trying to do.  You must know somethign about the "target" window already, right?  Like do you know its title?  Its spacial relationship  to one of your windows.  Its window class?  etc.  If you can provide more details, I can probably help you.
0
 

Author Comment

by:hbh
ID: 1410022
My problem is that when I logon Windows95, a program can send WM_KEYDOWN
and WM_KEYUP to Enter password dialogbox which has been popuped by system. The exactly name can be found by Spyxx.exe. This program should be able to send password instead of typing keyboard.
hbh
0
 
LVL 22

Accepted Solution

by:
nietod earned 50 total points
ID: 1410023
You can use FindWindow() to find the dialog window based on its title and window class name.  (which you can get using Spy++).
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now