|
-
March 9th, 2003, 08:36 PM
#1
intercepting mouse click
Hi,
How can i interecept a mouse click outside of the application?
-
March 10th, 2003, 04:28 AM
#2
Control.Capture property will do it... Read about Capture property in MSDN...
martin
-
March 10th, 2003, 09:00 AM
#3
I've looked at it and it seems like it allows only to capture events with in the window of the application.
Can you provide some links?
Thanks.
-
March 10th, 2003, 02:57 PM
#4
actually when u click outside of the app then focus is lost isn't it...
Paresh
-
March 10th, 2003, 02:58 PM
#5
you could try Cursor.Position
-
March 19th, 2003, 12:59 PM
#6
I think I know what you need, but it is not going to be simple. You need something like a spy - a program that "hooks" Windows messages, grabs them before they reach their target application.
A possible answer is the article
ms-help://MS.VSCC/MS.MSDNQTR.2002OCT.1033/dnwui/html/msdn_hooks32.htm
(I put here the address from my Microsoft Visual C#.net help - it should also work for you). If I am not wrong, this article provides the source code for a dll that you may use for creating your own hook.
I used this code to make my own hook in C# - and it was not pleasant, because I had to use unsafe code. But maybe you can find a better way.
Hope this helps.
Petru
-
March 19th, 2003, 02:55 PM
#7
the link doesn't come up.
Paresh
- Software Architect
-
March 19th, 2003, 03:36 PM
#8
Sorry - I did not know how to post the address of the article.
So this is its name:
------------
Win32 Hooks
Kyle Marsh
Microsoft Developer Network Technology Group
-------------
It can be found in MSDN in
--------
Windows User Interface Technical Articles
--------
Maybe you can search it using some keywords.
In fact, I just copied the link that I did in the previous article, opened
a dynamic help / search session, asked for whatever ("hook", for instance),
clicked on a link in the "Search result" window, and in the "Help" toolbar that appeared, I pasted the link; and lo! there it was.
Petru
-
March 20th, 2003, 03:52 PM
#9
thank you .
will look in to it.
- Software Architect
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|