Intercept the PASTE message

Hi:

I want to know how to intercept the event which is generated when the user do : CTRL+X or a paste.

I don't find a message like SC_PASTE in the documentation.
Is there any message related to the Clipboard

Thanks.
A.B.




Answer this question

Intercept the PASTE message

  • J A Y

    The clipboard is a per session resource, while multiply-logged in users there are multiple clipboards. A service cannot access all clipboards.

  • Rajesh batchu

    Hi:

    I think that the word "Service" is not the appropriate one, I use a systray for my application. I'm developing a small application like "SuperCopier" which intercept the paste, CTRL+X notification in order to create a progress bar for copying data with many functionality like (Stop/Resume).


  • Tom25

    You could associate the service with a window station and desktop, then create a message only window to capture the clipboard events, but it may not be such a grand idea. Or rather, it would no longer be much of a service.

  • abhayKochar

  • Özge Çolak

    Hi:

    I want to tell you that my application is a service that intercept system messages like doing a paste or a CTRL+X
    what I want to tell you is that I do not have a window or any other GUI, however
    The SetClipboardViewer requires a HWND. How can I get this handle


  • mix600

    Use SetClipboardViewer http://msdn2.microsoft.com/en-us/library/ms649052.aspx, and handle the WM_DRAWCLIPBOARD message.

  • Intercept the PASTE message