Solved

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

Posted on 2006-06-14
2
296 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

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

937 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

1 Experts available now in Live!

Get 1:1 Help Now