Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Catching other programs hwnd statement

Posted on 1998-09-19
5
Medium Priority
?
250 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 60 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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…
Suggested Courses

824 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