CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2002
    Location
    France, Toulouse
    Posts
    156

    stopping screen capture

    Hi to all

    Is there any methode to stop "print screen".

    thank you

    khaldoun

  2. #2
    Join Date
    Aug 2002
    Location
    Hamburg / Germany
    Posts
    280

    quick suggestion

    Hi,
    got no time now to verify the following but maybe it might help you:

    Windows keeps a list of so called printer-jobs somewhere. I think all print-jobs inited by print-screen are also enqueued there. Otherwise a cuurent print-job, which is initiated by an application like Word etc. might be broken if someone initiates a print-screen.

    I read somewhere, that there are Win32-API-Functions for creating, stopping and deleting print-jobs.

    I didn't try something like that myself, bt it should be just a suggestion.

    Greets

    Juergen

  3. #3
    Join Date
    Sep 2002
    Posts
    1,747

    stopping capture

    The simplest way I know of is to just OpenClipboard (without closing it back up), since that will tie up the clipboard so Windows can't use it for the capture. It may not be what you want if you need other applications to use the clipboard. And be aware that this does not stop other screen capture methods.

  4. #4
    Join Date
    May 2002
    Location
    France, Toulouse
    Posts
    156
    Thank you
    I'll test it

  5. #5
    Join Date
    Aug 2002
    Location
    Madrid
    Posts
    4,588
    Or you might install a global keyboard hook for that key, so that the Print Screen key doesn't actually do anything.

    See this article for an introduction on keyboard hooks
    Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
    Supports C++ and VB out of the box, but can be configured for other languages.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured