Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 254
  • Last Modified:

Catching other programs hwnd statement

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
FlyveHest
Asked:
FlyveHest
1 Solution
 
topolCommented:
Do you mean to find out the Hwnd of a particular window?
0
 
FlyveHestAuthor Commented:
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
 
mcixCommented:
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
 
FlyveHestAuthor Commented:
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
 
AllenC_JrCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now