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).
--
francois.pie...@overbyte.be
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
Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi