Solved

How do use SendMessage to write into another app's window.

Posted on 2006-06-14
2
295 Views
Last Modified: 2013-12-25
I have a script that I've used to write text into the window of another application.  By using the FindWindow and FindWidowEx api funciton calls, I was able to get that window's handle and then use the SendMesage function to actually write into it.  I want to do the same thing but write to a window of another application.  The problem I'm having is that I don't know the window hierarchy of this app so don't know which window this is a child of.  Is there any way to determine all of the children of a particular window and how to I access the handle of each?

Thanks!
 
0
Comment
Question by:planetiowa
2 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 250 total points
ID: 16905293
If you have Visual Studio then there is a free tool that came with it called Spy++ that you can use to view the window structure.

If you don't have Visual Studio then try out the free WinSpector:
http://www.windows-spy.com/
(I've used it before without any problems.)
0
 

Author Comment

by:planetiowa
ID: 16906682
Thanks - that's exactly what I needed!
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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

707 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

11 Experts available now in Live!

Get 1:1 Help Now