Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: [Request / Solved] Saving a crypted screenshot with GM 5 ? How?  (Read 1386 times)

0 Members and 1 Guest are viewing this topic.
[Request / Solved] Saving a crypted screenshot w...
« on: June 26, 2006, 11:55:38 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1082
I want to have GM take a screenshot of the game window (in-game, of course) and save it as an encrypted image so windows cannot view it. But then be able to open it back up with GM at a later date.

And ideas?
« Last Edit: March 18, 2012, 07:03:40 am by Niek »
Logged
Re: Saving a crypted screenshot with GM 5 ? How?
« Reply #1 on: June 27, 2006, 12:37:40 am »
  • =/
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 2284
Heres an example using cryptor:
http://www.64digits.com/download.php?name=Cryptor.rar&id=5902
I didn't comment code, but its pretty self explanitory.
Cryptor is slow in some parts though.

Opps, didn't notice the Gm 5 part. If Gm5 can use Dlls though, this still should work.
Logged
Re: Saving a crypted screenshot with GM 5 ? How?
« Reply #2 on: June 27, 2006, 02:21:59 am »
  • The Broken King
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1259
You could have it analyze every pixel of the on-screen area and save it as a value in a file format that windows doesn't know how to read (which could simply contain a number for width, a number for height, and width*height groups of three representing the r/g/b of each pixel), I believe GM has the functions that would allow you to do that. Then just have your program open/redraw those files.

Or, if you really want to be silly, just save it as a bitmap, then have your program create a second file with some junk characters in the beggining "jkflsdjlfj" and then the bitmap, deleting the original, and then have your program remove those junk characters when it imports the file.

I dunno how well those'd work though =D
Logged
  • Broken Kings [Temp Site]
Re: Saving a crypted screenshot with GM 5 ? How?
« Reply #3 on: June 27, 2006, 03:20:51 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1082
Whoah, this is the first time I've seen you post in months... o_O

Anyway, it doesn't have to be some pro cover-up method.
Just as long as some n00b can't simply view them. Like, if they wanna go thru the trouble to de-crypt it, I don't care. XD It's not gonna ruin the game or anything.
Logged

mit

Re: Saving a crypted screenshot with GM 5 ? How?
« Reply #4 on: June 27, 2006, 04:57:28 pm »
  • QBASIC programmer since age 4. Take that, world.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 1079
The first few bytes of an image file usually say what type it is; if you open an image in notepad it'll say something like 89GIF followed by a ton of unreadable crap (don't save it as notepad will destroy the file basically). If you change this, plus the file extension, most people won't be able to open it.
Logged
Programmer / Spriter / Level designer / Game Director / Web Designer / Music Sequencer for
Random Highscore table:

Play the Kousou Arcade today!
  • Kousou Games
Re: Saving a crypted screenshot with GM 5 ? How?
« Reply #5 on: June 28, 2006, 12:10:23 am »
  • The Broken King
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1259
Whoah, this is the first time I've seen you post in months... o_O

I've been here the entire tiem, just mostly posting in the dev forums and entertainment in general.

Unless you're talking to Piers. In which case yuo're crazy. I see him post all the tiem. :P
Logged
  • Broken Kings [Temp Site]
Re: Saving a crypted screenshot with GM 5 ? How?
« Reply #6 on: June 29, 2006, 04:46:50 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1635
Or more simply you could just encrypt the file with a DLL and then decrypt it when you want to use it. This is what I do with my zipped image files. Or, I made a xor script which will encrypt the files, and it is just a script and is very easy to implement. You can make one too, just reading bytes and xoring them. (I love made up words). I'd post mine but I'm not at my home computer right now.
Logged
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.258 seconds with 49 queries.