Mirage Source
http://www.miragesource.net/forums/

Print Button Protection
http://www.miragesource.net/forums/viewtopic.php?f=210&t=100
Page 1 of 3

Author:  William [ Sat Jun 03, 2006 2:36 pm ]
Post subject:  Print Button Protection

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.

Author:  grimsk8ter11 [ Sat Jun 03, 2006 3:41 pm ]
Post subject: 

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

Author:  Misunderstood [ Sat Jun 03, 2006 6:47 pm ]
Post subject: 

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 :\.

Author:  grimsk8ter11 [ Sat Jun 03, 2006 7:59 pm ]
Post subject: 

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.

Author:  Misunderstood [ Sat Jun 03, 2006 9:28 pm ]
Post subject: 

Best idea would be to do the oposite of whatever grim says xD.

Author:  grimsk8ter11 [ Sat Jun 03, 2006 10:23 pm ]
Post subject: 

what, nothing? lol

and I make no sense?

Author:  Matt [ Sat Jun 03, 2006 10:26 pm ]
Post subject: 

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.

Author:  Misunderstood [ Sat Jun 03, 2006 10:59 pm ]
Post subject: 

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.

Author:  grimsk8ter11 [ Sat Jun 03, 2006 11:40 pm ]
Post subject: 

he asked, so i shared lol, thats all, it does work to, i tested.

Author:  Misunderstood [ Sat Jun 03, 2006 11:48 pm ]
Post subject: 

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.

Author:  William [ Sat Jun 03, 2006 11:58 pm ]
Post subject: 

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.

Author:  Matt [ Sun Jun 04, 2006 12:19 am ]
Post subject: 

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

Geeze.

Author:  Obsidian [ Sun Jun 04, 2006 12:40 am ]
Post subject: 

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:

Author:  Misunderstood [ Sun Jun 04, 2006 12:43 am ]
Post subject: 

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.

Author:  Dark Echo [ Sun Jun 04, 2006 2:57 am ]
Post subject: 

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..

Author:  Misunderstood [ Sun Jun 04, 2006 2:58 am ]
Post subject: 

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.

Author:  grimsk8ter11 [ Sun Jun 04, 2006 6:06 am ]
Post subject: 

hehe, mis, blatantly obvious as always.

Author:  Dark Echo [ Sun Jun 04, 2006 9:34 am ]
Post subject: 

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..

Author:  William [ Sun Jun 04, 2006 10:37 am ]
Post subject: 

Well discussion Solved. i wont add a screenshot button. Cause it doesnt seem to help anyway.

Author:  Misunderstood [ Sun Jun 04, 2006 1:33 pm ]
Post subject: 

Yay I win xD.

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

Author:  William [ Sun Jun 04, 2006 2:09 pm ]
Post subject: 

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.

Author:  Lea [ Tue Jun 06, 2006 5:32 pm ]
Post subject: 

Detect when the person takes a screen shot, give them their screen shot at a lower quality than the graphics in your game. Screen shot saves the picture as a JPG i the Screen Shots folder.

This solves all the problems. Peopel can rip your graphics, but they will be low quality, and people who want to show bugs can do so without trouble.

Author:  William [ Tue Jun 06, 2006 5:48 pm ]
Post subject: 

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?

Author:  Misunderstood [ Tue Jun 06, 2006 7:29 pm ]
Post subject: 

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.

Author:  William [ Tue Jun 06, 2006 8:45 pm ]
Post subject: 

Yes, but I dont think screenshot matters that much. Since I believe I overrate my gfx anyway.

Page 1 of 3 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/