flat assembler
Message board for the users of flat assembler.

Index > Windows > About Hooks !

Author
Thread Post new topic Reply to topic
Xanfa



Joined: 03 Aug 2006
Posts: 29
Xanfa 04 Aug 2006, 01:30
Hi ! I've code a small program that get a window's handle on my computer, using KeyboardHook ( Actual it's the same as plugin "Windows Jungger" of Ollydebug !). But some problem occurr:

- When my program's dialog isn't ForcegroundWindow, it lose the message that I defined and posted in KeyboardProc, so it doesn't catch and display any window's handle. But this didn't happen in talked above plugin and in the Izelion tutorial 24 ! Mad

-And for disabled windows, how to catch them ?

-Sometime my program can't catch static text, or edit control's text ? (I'm using WindowFromPoint, and GetWindowText API )

Hope soon get your help ! Thanks !
Post 04 Aug 2006, 01:30
View user's profile Send private message Yahoo Messenger Reply with quote
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend 04 Aug 2006, 21:16
For disabled windows you must use ChildWindowFromPoint pushing parent's handle as argument.

EDIT; There is some iisue about screen and client coordinates. AFAIR you will have to use ScreenToClient API, but first read about all this in win32 reference. There is everything said.
Post 04 Aug 2006, 21:16
View user's profile Send private message Visit poster's website Reply with quote
Xanfa



Joined: 03 Aug 2006
Posts: 29
Xanfa 07 Aug 2006, 03:07
Oh, i've read about them, but problem is: "When my program's dialog isn't ForcegroundWindow" it's do nothing when i pressed Ctrl key (Hooked by my keyboardProc procedure ?
Post 07 Aug 2006, 03:07
View user's profile Send private message Yahoo Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.