dky1e
March 9th, 2003, 07:36 PM
Hi,
How can i interecept a mouse click outside of the application?
How can i interecept a mouse click outside of the application?
|
Click to See Complete Forum and Search --> : intercepting mouse click dky1e March 9th, 2003, 07:36 PM Hi, How can i interecept a mouse click outside of the application? MartinL March 10th, 2003, 03:28 AM Control.Capture property will do it... Read about Capture property in MSDN... martin dky1e March 10th, 2003, 08:00 AM 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. pareshgh March 10th, 2003, 01:57 PM actually when u click outside of the app then focus is lost isn't it... Paresh pareshgh March 10th, 2003, 01:58 PM you could try Cursor.Position petru66 March 19th, 2003, 11:59 AM 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 pareshgh March 19th, 2003, 01:55 PM the link doesn't come up. Paresh petru66 March 19th, 2003, 02:36 PM 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 pareshgh March 20th, 2003, 02:52 PM thank you . will look in to it. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |