![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Banned
![]() ![]() |
Save print screen to file OMG GAH
I've made a topic about this earlier, that really didn't help.
I've been searching the question on google for 1 and a half hours now, that really didn't help. Please help me!! @_@ All I need is a method of saving a freaking picture of the screen to the hard drive. Everything I find either has to be compiled in Visual Studio, or I need to download ImageMagick (which is freaking confusing to figure out). Or I get so much business crap trying to sell me "Snapshot Pro 2000 Extreme v1239.1". All I want is the raw solution to saving the clipboard contents as a bmp/png or whatever is necessary!! In whatever format, may it be a call in the operating system or plain Python code. As long as my client doesn't need to install a bunch of programs on his computer... |
|
|
|
|
|
#2 |
|
Expert Programmer
|
Are you looking for a program to do it? Or a way to do it in python?
You could just press that big fat button labeled "print screen" and then open an image editor like paint, and press ctrl+v to paste.
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#3 |
|
Hobbyist Programmer
|
Just search Google for "Screenshot Utility" the first of second hit is a nice lil proggy that comes up with a 30 day trial. Very easy to use.
http://www.screenshot-utility.com/ <----I'm assuming your using Windows. If this dosn't help then i'm not sure what your talking about.
__________________
When will Jesus bring the porkchops? |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
|
I found this coding, have no idea if it works.
win32api.keybd_event(win32con.VK_PRINT, 0) win32clipboard.OpenClipboard(0) data = win32clipboard.GetClipboardData(win32clipboard.CF_BITMAP) win32clipboard.CloseClipboard() |
|
|
|
|
|
#5 |
|
Programming Guru
![]() |
All that code is doing is pressing the "Print Scrn" key and saving the Bitmap data from the clipboard...
__________________
|
|
|
|
|
|
#6 | |
|
Professional Programmer
Join Date: Jun 2005
Location: India, The great.
Posts: 435
Rep Power: 4
![]() |
Quote:
__________________
PFO - My daily dose of technology. |
|
|
|
|
|
|
#7 |
|
Professional Programmer
|
print screen, ctr + v in paint (you need support patches for whatever format you want paint to download in) file> save as> PNG
|
|
|
|
|
|
#8 | |
|
Expert Programmer
|
Quote:
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
|
#9 |
|
Unverified User
Join Date: Aug 2005
Location: none
Posts: 146
Rep Power: 0
![]() |
KDE has a builtin hotkey that you can configure in kcmshell keys (search screens and you'll see it). Paste it in an image editor (like KolourPaint) and save.
The GIMP has something under File>Aquire>Screen Shot... There's also KSnapShot and GNOME's thing somewhere in the menu.
__________________
Warning: My posts may change (dramatically) within the first 15 minutes they're posted. Got 'Nux?—GNU/Linux and other free software support. It's GNU/Linux, not just Linux. |
|
|
|
|
|
#10 | |||
|
Banned
![]() ![]() |
Quote:
Quote:
Quote:
Maybe if I did it in Python though, if Python's win modules have GetClipboardData. I think in my last topic for this question It ended with me saying Python's win32modules doesn't support GetBlipboardData. I'll look for pywin32 for python 2.4, thanks. EDIT: Okay, when I tried it in Pyhon 2.4 (with the correct pywin modules), I got this error: >>> data = win32clipboard.GetClipboardData(2)
Traceback (most recent call last):
File "<pyshell#5>", line 1, in -toplevel-
data = win32clipboard.GetClipboardData(2)
error: (6, 'GetClipboardData:GlobalLock', 'The handle is invalid.')Last edited by Sane; Jan 4th, 2006 at 2:11 PM. |
|||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|