AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Simple "rapid-fire printscreen"

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
ashef
Guest





PostPosted: Sat Mar 15, 2008 11:02 pm    Post subject: Simple "rapid-fire printscreen" Reply with quote

I've been searching and searching for a rapid-fire printscreen script, but I keep finding all these complicated scripts. I want one that, when fired, will automatically save a screenshot (any file type). Simple as that.
Here's what I have. The files don't actually have anything in them though.

#Printscreen::
Send, {Printscreen}
FileAppend, %ClipboardAll%, E:\Users\%A_Username%\Pictures\Screen\%A_Now%.bmp ; I'm using Vista.
SoundBeep, 1000, 100 ; Just to let me know it saved it.
return

Also, I want this a stand-alone script. No GDI+ or anything.
Back to top
ashef
Guest





PostPosted: Sat Mar 15, 2008 11:56 pm    Post subject: Reply with quote

Oh and sorry this belongs in the Help section... I clicked the button at the wrong window. Sad
Back to top
maximo3491



Joined: 10 Feb 2007
Posts: 65

PostPosted: Sun Mar 16, 2008 12:03 am    Post subject: Reply with quote

There are a ton of printscreen to file scripts around. Just search the forums
Back to top
View user's profile Send private message
Lurker1457



Joined: 10 Mar 2008
Posts: 11

PostPosted: Sun Mar 16, 2008 12:15 am    Post subject: Reply with quote

Yes, one of the mods will eventually dumbo-drop this thread back into its native habitat in the "Ask for help" rain forests.

Incidently, the reason your files are empty is because you don't use Clipwait, 2, 1 after sending the printscreen key. It does take windows some time to move the screen data into the clipboard. Also, writing clipboard image data to a file won't produce a valid image file (AKAIK, CMIIW). You either need to use another app (like the irfanview command line executable) or a GDI function (search the forums).

oh, yeah, It's a good idea to empty the clipboard before any combination of copy/clipwait, since clipwait doesn't care whether the clipboard's data is new or old.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group