?
Solved

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

Posted on 2006-06-14
2
Medium Priority
?
300 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 1000 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month15 days, 6 hours left to enroll

770 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