Solved

Catching other programs hwnd statement

Posted on 1998-09-19
5
195 Views
Last Modified: 2010-04-30
How do you capture the HWND of a program in windows?

I need to capture windows messages to and from Netscape Navigator from a VB program.
0
Comment
Question by:FlyveHest
5 Comments
 

Expert Comment

by:topol
Comment Utility
Do you mean to find out the Hwnd of a particular window?
0
 

Author Comment

by:FlyveHest
Comment Utility
What i need is the possibility to intercept the messages from the Netscape window before the Netscape process gets them (i think its called a hook) so i can alter them.
0
 
LVL 4

Expert Comment

by:mcix
Comment Utility
The simplest way to get a hook is to use this DLL from Desaware...

http://www.desaware.com/Desaware_Info/products/spy_works/default.htm
0
 

Author Comment

by:FlyveHest
Comment Utility
Yes, but thats a commercial product, which costs money.  If i had to solve all problems by buying dll's and VBX's, then there wouldn't be much fun in coding.
0
 
LVL 2

Accepted Solution

by:
AllenC_Jr earned 20 total points
Comment Utility
You Could Get the HWND of the Object Then Go From there

API Call

Private Declare Function FindWindow& Lib "user32" Alias "FindWindowA" (ByVal lpClassName$, ByVal lpWindowName$)

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

772 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

10 Experts available now in Live!

Get 1:1 Help Now