how to differentiate auto getclipboarddata from real content pasting?
i'm trying to dev a simple tool which notify the user when he is pasting content into an unthorized application. I ve hooked the getclipboarddata function to do this. But application like MS office launch sometimes getclipboarddata to get retrieve the content but it s not a user pas开发者_如何学Pythonting action. How to differentiate those different calls ?
Any clipboard viewer is going to auto-paste data into itself. This includes clipboard programs like my own ClipMate, as well as Office, various editors with clipboard history, remote desktop, VMWare, and big-brother/malware apps. Assuming that you're talking about plain text, there is no way to determine a user-initiated paste. You can guess, by looking to see if Ctrl+V or Shift+Insert is pressed. But that's pretty shaky.
精彩评论