Click here to Skip to main content
11,795,568 members (78,346 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C++ MFC

How to track events when the user right clicks and selects the options copy or cut or rename or delete using Mouse Hooks.I am successful in trapping the events using Keyboard hooks but i am struck in finding the mouse right click events(Copy,cut,delete,rename).

I want to find this events through out the system not with in my application.Kindly can any one help me to solve this.I am trying to solve this from long time.

Thanks in Advance.

/EDIT Removed Formatting
Posted 28-Dec-12 19:48pm
Edited 28-Dec-12 20:31pm
Hetal Jariwala at 29-Dec-12 1:55am
you can use this windows hook library
Rocky_Bas at 29-Dec-12 2:04am
I need the specific events for Copy,cut,delete using Mouse right click.
Like for key board we use VK_DELETE
Josh Hawley at 2-Jan-13 16:43pm
That is going to be difficult because of the delete. copy, cut, paste you could monitor the clipboard for, but delete is usually implemented by each application.
Rocky_Bas at 2-Jan-13 20:44pm
How to monitor those copy,cut,paste from mouse right click
Philippe Mori at 3-Jan-13 10:47am
As far as I know, there are no standard way of doing that and each application handle right clicks, contextual menus and the clipboard for itself.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 340
1 Sergey Alexandrovich Kryukov 316
2 OriginalGriff 285
3 Abhinav S 223
4 KrunalRohit 214
0 OriginalGriff 1,797
1 Maciej Los 1,415
2 KrunalRohit 1,240
3 CPallini 840
4 ppolymorphe 808

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 29 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100