Send Message to another application

Can I send a message to a window that belong to another application?
How to get this window's handle?
hbh
hbhAsked:
Who is Participating?
 
nietodConnect With a Mentor Commented:
You can use FindWindow() to find the dialog window based on its title and window class name.  (which you can get using Spy++).
0
 
nietodCommented:
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
 
hbhAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.