Solved

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

Posted on 2006-06-14
2
298 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 86

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
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…

730 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