Solved

Send Message to another application

Posted on 1998-07-13
3
693 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to have excel show file name on the title bar 4 42
Fix insertion and shifting issue 5 60
SQL to ElasticSearch Query 1 579
GUI: DIalog Stacking and Popping in MS C++ 4 65
This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

910 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