Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] Take Screenshot

Author
Message
Xsnip3rX
17
Years of Service
User Offline
Joined: 20th Feb 2007
Location: Washington State
Posted: 17th Jan 2008 02:40
You can take a screenshot by pressing F12, ready to be implimented into the main control loop in your program!, enjoy.


Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 17th Jan 2008 09:43
Ehhh... this won't do anything. By just looking at it, THIS will work:



Or atleast, something similar to that.(Haven't tested. Haven't installed DBP on Vista yet.)

Xsnip3rX
17
Years of Service
User Offline
Joined: 20th Feb 2007
Location: Washington State
Posted: 17th Jan 2008 11:57
=\ mine works perfect acually, granted yours is in a loop, and is cleaner, but mine's easy to impliment into a loop or just to make a button function out of, though, so is yours, so...thanks for your input anyways!

Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 17th Jan 2008 12:02
Wait, I read your code wrong. I thought it was waiting for the image to exist. But it uses "<>" instead of "=" My bad. Sorry.

Xsnip3rX
17
Years of Service
User Offline
Joined: 20th Feb 2007
Location: Washington State
Posted: 17th Jan 2008 12:06
as i said on MSN, no worries mate

Xsnip3rX
17
Years of Service
User Offline
Joined: 20th Feb 2007
Location: Washington State
Posted: 15th Apr 2008 19:43 Edited at: 15th Apr 2008 20:13
OK, so 4 months later, this code snippet doesn't work anymore, anyone have any ideas?


Note: You need matrix1util's for this to work.

Sasuke
18
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 15th Apr 2008 22:56 Edited at: 15th Apr 2008 22:56
Just want to add, if there are any sprites in the scene they won't be included in your screenshot unless you paste them to the screen. I made a function for this(and windowskiller has a nice one) but I don't want to hijack your thread. But it shouldn't be to hard for you to make a function for pasting sprites.

Also to fix your snippet, just remove the '/' from the front of your save image path:

SAVE IMAGE "/ScreenShots/Screenshot Number - "

Becomes:

SAVE IMAGE "ScreenShots/Screenshot Number - "
Roxas
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 18th Apr 2008 08:46 Edited at: 18th Apr 2008 08:47
And why you always make new image when you can use same image number always.



and non matrix1util version



Your signature has been erased by a mod because it was too big
Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 29th Jun 2008 16:24
what do i do if the game automaticly screenshots the game at a certain time

Creators of Outscape
Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 29th Jun 2008 16:30 Edited at: 29th Jun 2008 16:39
FIND FREE IMAGE doesnt work
whats the keystate for printscreen?

Creators of Outscape
Xsnip3rX
17
Years of Service
User Offline
Joined: 20th Feb 2007
Location: Washington State
Posted: 30th Jun 2008 05:55
try Roxas' way, doesn't need any DLL's

Night Creeper
16
Years of Service
User Offline
Joined: 21st May 2008
Location: in front of the computer
Posted: 6th Jul 2008 13:55
the keystate is 183 for print screen

Login to post a reply

Server time is: 2024-11-25 03:03:04
Your offset time is: 2024-11-25 03:03:04