Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Print Button Protection
#1
It was a small discussion about this before, but I never got it working. So if anybody know how to make it so when the Prt Scr button is pressed a picture appears over the screen.
Reply
#2
what you need to do is get the key event, and when you detect it, you either erase the clipboard OR you replace the picbox with a temp image before oyu let it copy.

Code:
Const VK_SNAPSHOT = &H2C

Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
  If KeyCode = VK_SNAPSHOT Then
    Clipboard.Clear
  End If
End Sub

I was also thinking, if its detected make a hidden imagebox on top of pcScreen, so that ti takes that instead fo the screen.

Either way, you cant stop them from ti alltogether unless when the window is not ontop or activewindow, you make picScreen blank.

[EDIT]

you could also jsut have the box always hidden and jsut do
Code:
Cliboard.SetData frmMirage.imgImg.Picture

or whatever xD
Reply
#3
you can't prevent everyone from getting a screenshot of your game. There will always be a way to get a picture of it, all you are doing by disabling the picscreen is preventing people who want screenshots of your game to get them, maybe to show them to someone else or to show you some bug that they see. There are programs that let you get screenshots of the screen too, disabling the key is just not gonna help ya :\.
Reply
#4
ya, but best idea would be to overlay a watermark before you let it copy it, and only show picscreen when the current activewindow is the game, otherwaise, msot programs jsut copy pixel by pixel from you picScreen to their program.
Reply
#5
Best idea would be to do the oposite of whatever grim says xD.
Reply
#6
what, nothing? lol

and I make no sense?
Reply
#7
I don't think Mis was trying to make sense, more like trying to make fun of you and didn't care that he made himself look a bit stupid. Lol.
Reply
#8
It was a risk I was willing to take.

But really, I don't see the point on doing any of this, it will prevent the people who won't do anything from showing screenshots to you of bugs they see, or to their friends, however those who want screenshots to rip something from the game, will hopefully be smart enough to realize they can use a program instead of the key to take the screenshots.
Reply
#9
he asked, so i shared lol, thats all, it does work to, i tested.
Reply
#10
I wasn't saying it didn't work for that purpose, it wont work preventing people from getting the graphics, theres always another way, and if you do add that in it might make people want to get the graphics even more.
Reply
#11
Yes, theres always another way. There is another way to travel to USA from Sweden then just a airplain, you can always walk or swim. But I was looking for somthing that would increase some security. So if I cant get it here. Then I guess I missunderstood some peoples purpose here.

thanks grimsk8ter11.
Reply
#12
William, you take everything wrong. Misunderstood is trying to help you, you know, help you realize it's actually quite pointless?

Geeze.
Reply
#13
yea, if someone wants your graphics bad enough they'll point a digital camera at their monitor. i guess you could find a way to make their monitor overheat and melt or kill all the pixels

Code:
if digital camera = true

:roll:
Reply
#14
My point is, it does nothing but
A) Take your graphics just to spite you because you are being too paranoid about it

or

B) Stop harmless people from getting screenshots of the game to show to others, or so show bugs they have found.

Those that want a screenshot and are smart can get it quite easily nomatter what you do and as I said in A, might make them do it just because you are trying to prevent them.
Reply
#15
He could add in a simple Screenshot button, which will take a screenshot of the pic-screen.. But yeah.. I say, add it in, and make a button to take screenshots, and save them a jpeg.. But yeah, if people really want to steal your graphics, there's not much you can do to stop them.. Slow them down maybe, but not stop them..
Reply
#16
Dark Echo Wrote:He could add in a simple Screenshot button, which will take a screenshot of the pic-screen.. But yeah.. I say, add it in, and make a button to take screenshots, and save them a jpeg.. But yeah, if people really want to steal your graphics, there's not much you can do to stop them.. Slow them down maybe, but not stop them..

add a screenshot button? hes trying to stop people from taking screenshots xD.
Reply
#17
hehe, mis, blatantly obvious as always.
Reply
#18
I thought he was trying to stop people stealing his graphics? Well, if he's trying to stop people taking screenshots, then yeah lol.. I dont take my advice..
Reply
#19
Well discussion Solved. i wont add a screenshot button. Cause it doesnt seem to help anyway.
Reply
#20
Yay I win xD.

He is trying to stop people from getting screenshots so they won't steal the graphics.
Reply
#21
Misunderstood Wrote:Yay I win xD.

He is trying to stop people from getting screenshots so they won't steal the graphics.

You dont win. I just dont want to have a discussion for and againt if I should have it or not. Although it helped me some to realize that with bug screenshots and such.
Reply
#22
What if I use this code, that grim gave:

Code:
Const VK_SNAPSHOT = &H2C

Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
  If KeyCode = VK_SNAPSHOT Then
    Clipboard.Clear
  End If
End Sub

That wont work if the game isnt the target, like if they have pressed on notepad, and then take a screenshot of the whole thing. Then it wont work, because it will save it into memory and paste into paint?
Reply
#23
you can always hook the keyboard to find if it is pressed in any program, but since that still wont stop people from doing it other ways, I don't go into detail.
Reply
#24
Yes, but I dont think screenshot matters that much. Since I believe I overrate my gfx anyway.
Reply
#25
No, you just dont know how to tell the difference between harsh criticisim and constructive criticism. Tongue
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)