Results 1 to 13 of 13

Thread: Stopping Screen Shots from being taken

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    6

    Stopping Screen Shots from being taken

    Is there anyway to stop people from taking a screen shot/print screen of my program in vb?

  2. #2
    Lively Member
    Join Date
    Nov 2004
    Posts
    98

    Re: Stopping Screen Shots from being taken

    Pry their Alt and Print Screen keys off? Actually that wouldn't stop people with screen grabbing programs.

  3. #3
    Fanatic Member ZeBula8's Avatar
    Join Date
    Oct 2002
    Posts
    548

    Re: Stopping Screen Shots from being taken

    Make it ugly as hell

  4. #4
    Fanatic Member
    Join Date
    Jan 2005
    Location
    In front of this pc.
    Posts
    580

    Re: Stopping Screen Shots from being taken

    Don't let folks install your program

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    6

    Re: Stopping Screen Shots from being taken

    I was thinking more on the side of coding I have seen programs that stop you from taking screenshots the normal way by pressing prnt screen, that's what I'm looking for.

  6. #6
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: Stopping Screen Shots from being taken

    you can search Allapi.net to check if some API is related to such things...........coz the worst part is that PrntScrn doesnot have any KeyCode so that u can disable this key!!
    Show Appreciation. Rate Posts.

  7. #7
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Stopping Screen Shots from being taken

    You could try installing a global hook to listen for the PrintScreen key press and consume the message so that it is not passed to Windows. I'm not sure whether Windows processes it first however. If it does you'd need a low-level keyboard hook which I'm also not sure if you can do in VB (will have to look that one up).

    However, you can't stop screenshots being taken altogether. It is a very simple bit of code to make a small app that takes screenshots of the screen or a particular window, when you press F10, or click a button.

  8. #8
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Stopping Screen Shots from being taken

    Quote Originally Posted by andrewb
    Actually that wouldn't stop people with screen grabbing programs.
    In addition to what penagate said, there are a ton of screen grabbing programs out there. Some free, some shareware, but very easy to get your hands on.

  9. #9
    Addicted Member JensPeder's Avatar
    Join Date
    Sep 2005
    Posts
    249

    Re: Stopping Screen Shots from being taken

    I rememeber reading about some guys trying to disable screenshopcapture-programs. They had alot of ideas, though they probably didn't make it. One guy suggested hooking the api-function used in VB for screenshots, or change the dll a bit. They also talked about disorting the screen somehow, so that screenshots got messed up. Some of the ideas didn't sound toooo farfetched, though I dubt you could do it in VB

  10. #10
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Stopping Screen Shots from being taken

    Well to take a screenshot you use BitBlt. If you mess up BitBlt you also mess up a lot of things non-screenshot-related.

  11. #11
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Re: Stopping Screen Shots from being taken

    I remember I came along something similar on the web several years ago. It was a component that was able to show images on a website, without the possibility to copy the image. It blocked screenshots as well.
    I noticed that when this component was running, bitblt didn't function anymore, so I removed it immediately from my machine.
    I never saw the component again, and I forgot the name.
    Frans

  12. #12
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Stopping Screen Shots from being taken

    Quote Originally Posted by Frans C
    I never saw the component again, and I forgot the name.
    I would consider both to be good things.

  13. #13
    Fanatic Member
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    760

    Re: Stopping Screen Shots from being taken

    Try using GetAsyncKeystate (I dunno how its spelt)
    If I helped you out, please consider adding to my reputation!

    -- "The faulty interface lies between the chair and the keyboard" --

    VB6 Programs By Me:
    ** Dictionary, Thesaurus & Rhyme-Generator In One ** WMP Recent Files List Editor ** Pretty Impressive Clock ** Extract Firefox History **

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