I am new to python, I am currently designing a program that runs in the background and i want it to detect if any copy, cut or paste operation is performed on a PC. Or is there a way i can detect when control c, control v or control x is pressed by a user Thanks
Asked
Active
Viewed 2,266 times
2 Answers
1
You can try a key logger to detect key stroke like this one. Other than that you can use key hooking using system calls.

Yogender Solanki
- 72
- 1
- 9
-
i tried hooking but theres no way to detect when a control-c is pressed by hooking – Neo- Ex Sep 08 '16 at 10:37
0
You could try to register changes to clipboard to trigger your event.
Take a look at this stack overflow question: link
-
None of the answers in that link register for changes; they do a busy-wait-sleep loop. – Don Hatch Jun 05 '19 at 10:54