Log in

View Full Version : Finding windows Handle


Hero
July 26th, 2004, 07:12
Hi
Do you ever see simple programs that find real text value of an masked EditBox (for example by *) by pointing cursor on it?
This program have made me this question:
How we can find the handle of Window that we point it by cursor?
Is it possible?

sincerely yours

Shub-nigurrath
July 26th, 2004, 07:39
use the VC++ spy tool, which can be installed on its own, but there are plenty of such things..

sna
July 26th, 2004, 08:36
Using the Win32 API: GetCursorPos/WindowFromPoint/ChildWindowFromPoint

Regards, sna

Fake51
July 26th, 2004, 08:36
Hmmm, probably thru input focus. You can trap systemwide messages, and see where they go. I don't think inactive windows get sent keyboard messages, and probably not mouse messages either (can't remember exactly).

Fake

highenergy
July 26th, 2004, 12:07
I just would like to add this little info. Iczelion already did it with a working example. Look at Tutorial 24:Windows Hooks at www.win32asm.cjb.net

Silver
July 26th, 2004, 14:39
http://www.codeguru.com/Cpp/I-N/ieprogram/security/article.php/c4387

Hero
July 26th, 2004, 22:55
Thanks everybody for answer.