Solved

Catching other programs hwnd statement

Posted on 1998-09-19
5
224 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
ID: 1435669
Do you mean to find out the Hwnd of a particular window?
0
 

Author Comment

by:FlyveHest
ID: 1435670
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
ID: 1435671
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
ID: 1435672
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
ID: 1435673
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
vb6 connector to SQL Server 2 39
vb6 - Transfer from MSHFlexgrid1 to xls issue 8 56
Child Form in front 4 49
Automatic Email Reminder 4 58
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
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…

820 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