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.

DLL Talk / Taking A Screen Shot

Author
Message
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 4th Apr 2006 19:31
Can someone please tell me if they know where i can get a dll that will take a screen shot of whats on the screen, or if your really nice make one ? I found a dll that could do this thow it put the location of the file in the clipboard and that means i cant use that in my application becuase it will really annoy people becuase it takes a lot of screen shots.
Thanks,
Alex.

Goto My Website And Sign Up On The Forum http://fireproductions.f5k.com
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 4th Apr 2006 20:11
you could always save there clipboard, use the clipboard for the screenshot then replace it with the original clipboard but as to a dll which does it im not sure - never really found a use for something like this i gather you have tried searching google?


amd athlon xp 2600+,1280mb,FX 5200 128mb,200gb,xp pro sp2
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 5th Apr 2006 11:13
Ill, try google

Goto My Website And Sign Up On The Forum http://fireproductions.f5k.com
Freddy 007
20
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 5th Apr 2006 18:00
If it is for Darkbasic Pro, then what's wrong with :



?

CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 5th Apr 2006 18:44
does he mean the db window or the entire desktop screen?

Automatic file updates for your distributed Games
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 5th Apr 2006 18:55
Sorry i mean entire desktop screen

Goto My Website And Sign Up On The Forum http://www.fireproductions.co.uk
Freddy 007
20
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 5th Apr 2006 19:15
Oh, ok. I think I saw some dll somewhere on this forum that could do that... But of course I've forgotten where!

AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 5th Apr 2006 19:26 Edited at: 5th Apr 2006 19:27
Try and remember please , if it was a dll that put the path of the file in clipbord then dont worry.

Goto My Website And Sign Up On The Forum http://www.fireproductions.co.uk
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 5th Apr 2006 20:02
Only one I have found is the darkside dll which takes a snap of desktop and creates a file in your temp folder and sticks path of it into clipboard, just like you said.

http://mysite.wanadoo-members.co.uk/darksidefreeware/dllpage.htm

If I remember rightly though there was a manual way of doing it though in a code snippet about a year ago using some windows dlls. It basically took a screengrab and did a clever lens effect like old windows screensaver. Not to be confused with the recent lens snippet on the forum.

Boo!
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 5th Apr 2006 20:04
Ooo try and remember more about the code snippet

Goto My Website And Sign Up On The Forum http://www.fireproductions.co.uk
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 5th Apr 2006 20:07
Found it, but it's a bit old and probably needs a bit of tinkering. It's probably a bit too slow for you aswell.

http://forum.thegamecreators.com/?m=forum_view&t=46301&b=6

anyway, what's wrong in using the darkside dll. It's dead quick and you can always load the saved image straight away and the delete it off users hard drive.

Boo!
the_winch
22
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 5th Apr 2006 20:35
Why not email the person who made the dll and ask if they will modify it so it doesn't use the clipboard?

By way of demonstration, he emitted a batlike squeak that was indeed bothersome.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 5th Apr 2006 21:36 Edited at: 5th Apr 2006 21:44
i think there was a hidden function in dbp_netlib 1.4.4beta that let you hit a key to take a full-screen screen shot and then it saved it as a file.

Ill check...


[edit]
theres an undocumented function called clp_SaveImage(filename as string)

iirc you can implement it by putting watch code for the printscreen key in your program, which will write the data to the clipboard, then add a short pause, then call the function to write the data to a bmp file

Automatic file updates for your distributed Games
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 6th Apr 2006 02:14
The link the spooky sent was realy good but i need to very quickly take screen shots so the speed let it down .

CattleRustler - I actually need to take the screen shot not try and get it from the clipboard.

Thanks Everyone,
Any more ideas.

Goto My Website And Sign Up On The Forum http://www.fireproductions.co.uk
Lost in Thought
21
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 6th Apr 2006 02:51 Edited at: 6th Apr 2006 02:52
You misunderstand CR. It takes a SS, copies it to the clipboard, and then makes a file from it. I use that function alot It copies everything. The way it works is you setup[ a check for the print screen button, when pressed it copies the screen to the clipboard, you put a very small wait time and then call his function. You get a perfect screen shot. The problem is that I didn't know everyone could get the beta You have a link to it CR?

AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 6th Apr 2006 12:34 Edited at: 6th Apr 2006 12:34
If i'm understanding what your saying you have to press print screen to get it to work?
Quote: "The way it works is you setup[ a check for the print screen button"


I need it to be automatic

Goto My Website And Sign Up On The Forum http://www.fireproductions.co.uk
Lost in Thought
21
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 6th Apr 2006 12:57
Oh lol. Always has to be complicated eh

CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 6th Apr 2006 15:12
lol

that code is in 1.4.3 but I am not sure if the version of 1.4.3 on my page actually was compiled with the function or not, and if I just didnt change the version number and doc. If anyone besides LIT has 1.4.3 could they check if the function clp_SaveImage is present in the dll? If its not then ill recompile under 1.4.4 and update the docs and the kw file. Thanks

Automatic file updates for your distributed Games
AbiVelj
19
Years of Service
User Offline
Joined: 7th May 2006
Location:
Posted: 8th May 2006 08:16
this is what i do i prss Alt+Print Screen then go to one of my paint programs and press Ctrl+V..... thats it and it taks of the whole screen

This is me.... a game programmer....

Login to post a reply

Server time is: 2025-05-19 01:46:56
Your offset time is: 2025-05-19 01:46:56