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

ROANALD JOSÉ saha 1 Reputation point
2021-01-26T17:31:37.897+00:00

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
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,698 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,795 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Castorix31 81,831 Reputation points
    2021-01-26T17:49:46.023+00:00

    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

    0 comments No comments

  2. Dale Kudusi 3,211 Reputation points
    2021-01-27T07:33:40.913+00:00

    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.

    0 comments No comments