[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 252
  • 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

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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