Hi Francois,
I understand what you say, but I do not have experience with "hook" and I do
not know,
where and how to use it. What function or procedure is that?
Also, how to get info from Handler?
Thanks,
Peter
P.S.: Sorry Francois, before I clicked accidentaly on your e-mail addres ...
----- Original Message -----
From: "Francois PIETTE" <[email protected]>
To: "Moderated List for the Discussion of Delphi
ProgrammingexcludingDatabase-related topics" <[email protected]>
Sent: Monday, October 11, 2010 1:49 AM
Subject: Re: Recognition ov application window
Install a mouse hook to get the mouse movements whatever application is
above your's. Then knowing the area(s) where you application is, you can
compute if the mouse is within or not, even if your app is behind
another
other one.
Thanks, I already tried it. There are a few standard mouse functions to
simplify that,
but the major problem is, when the application window is partly covered
by the other
Windows applications and I cannot mask the area to say "I do not see
my application, set-up indicator to False, if for seeing that is True).
Maybe I have not explained correctly. Using a global mouse hook, your
program can get ALL mouse activity regardless of the mouse flying over
your own application window or anotherapplication (what count is the top
most window where the mouse is).
I see two possibilities with the mouse hook:
1) You get the handle of the window where the mouse is and you can check
if this windows belongs to your application
2) You get the movments and you can check if the mouse position is in the
rectangular area of your application window (you alwaus know where you
application windows is on screen of course).
--
[email protected]
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
_______________________________________________
Delphi mailing list
[email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list
[email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi