question

ROANALDJOSsaha-9038 avatar image
0 Votes"
ROANALDJOSsaha-9038 asked ·

how hook Getclipboardata, and ¿paste events can be monitored or detected this way?

I only want that when an application obtains data from the clipboard something happens (show an msgbox or run a program or sccript) but i don't know how to do this...

I do not have much knowledge in programming, is there someone who can tell me step by step how to do this,
and what do I need use and download?, VISUAL C or C++

I have looked everywhere for an answer and I have found this which gives me hope:

https://social.msdn.microsoft.com/Forums/en-US/56776b15-ac5c-4490-9026-36efecee9329/capihook-not-hooking-user32dll-setclipboarddata-or-getclipboarddata-functions?forum=vcgeneral

https://social.msdn.microsoft.com/Forums/en-US/24832934-66fd-4da6-a6f9-002de984470f/after-hooking-setclipboarddata-and-getclipboardata-openclipboard-fails?forum=vcgeneral

https://www.codeproject.com/Questions/221857/After-hooking-SetClipboardData-and-Getclipboardata



THANKS IN ADVANCE FOR ANY ASSISTANCE

windows-10-generalwindows-7-general
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I do not have much knowledge in programming,

If you don't have extensive experience writing C++ code and calling Win32 API's, I think you'll just be wasting your time trying to write your own program, or even modifying someone else's example. I think that you would be better off trying to find an existing utility.

Here's one. The comments mention other tools too.

https://www.ghacks.net/2020/05/30/clibor-is-a-free-clipboard-monitoring-tool-for-windows/

What is the real problem that you are trying to solve? For example; do you suspect that your PC is infected with some malware that is watching the clipboard contents?


0 Votes 0 ·

Hi, @ROANALDJOSsaha-9038
Was the issue resolved?
If any reply is useful for you, please accept it as answer.
If you have any issue or concern, please reply to us directly.
Best Regards.

0 Votes 0 ·
Castorix31 avatar image
0 Votes"
Castorix31 answered ·

I only want that when an application obtains data from the clipboard something happens (show an msgbox or run a program or sccript) but i don't know how to do this...

See Monitoring Clipboard Contents



·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DaleKudusi-MSFT avatar image
0 Votes"
DaleKudusi-MSFT answered ·

Hi,
Please kindly refer to this thread for helpful codes:
https://stackoverflow.com/questions/18311274/monitoring-clipboard


Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information

Best regards.


If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.