AutoHotkey Community

It is currently May 26th, 2012, 11:43 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: May 27th, 2005, 7:33 am 
Offline

Joined: April 18th, 2005, 11:03 am
Posts: 14
Location: WI, USA
Code:
   ^f8::
   Send, {alt}{printscreen}
   FileAppend, %clipboardall%, C:\AHKSnap.jpg


I'm sure thats how it should be to take a screen shot picture with AHK but for some reason it doesn't actually show a picture file but I get the message "cannot create preview" or something as such when I go to view it. However if I manually open the file with notepad HOLY MOLEY does it ever have a ton of ascii garb all over. Am I missing something.. perhaps this is not possible but if it is and you guys know how to do it properly I'd love to know

DANKA! :P

_________________
"It was when I found out I could make mistakes that I knew I was on to something."
--Ornette Coleman


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 27th, 2005, 8:17 am 
Maybe its possible to convert the image to disk via the "Print To File"-option?! (BrainDump, might be pure nonsense :roll:)

btw: that could be of interest as well (for Chris&friends with source code) - [ClipboardImageArchiver]


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 27th, 2005, 8:42 am 
[Save Picture from Clipboard to file]

Sample for an optional AHK feature ? :wink:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 27th, 2005, 8:48 am 
[Capture Screen to Clipboard including dropdown menu
]
C++ with source.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 27th, 2005, 9:09 am 
Offline

Joined: April 5th, 2005, 10:50 pm
Posts: 133
Try this code, it'd save the picture using Paint (.bmp file)
you can replace it with any program you like to use that may support more formats (Jpg). But maybe you'll need to change the send commands.
Hotkeys used in the script are:
Ctrl+F8 ...... capture and save
Esc............. exit

Code:
^F8::
send {Alt}{printscreen}
Run,MSPAINT.EXE
WinWait, untitled - Paint
WinActivate, untitled - Paint
Send, {CTRLDOWN}v{CTRLUP}
Send, {ALTDOWN}f{ALTUP}
Send, A
WinWait, Save As
WinActivate, Save As
Send, %A_now%.bmp{ENTER}
WinWait, %A_now%.bmp,
IfWinNotActive, %A_now%.bmp, , WinActivate, %A_now%.bmp ,
Send, {ALTDOWN}{f4}{ALTUP}
return

esc::
exitapp
return

I hope that could do what you want.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 27th, 2005, 1:49 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
BoBo, thanks for the code, but neither one is suitable. The first is C# and/or .Net, so can't be used due to code bloat and possibly a lack of compatibility on some systems. The second doesn't have any means to save the file to disk.

In spite of this, it's still on the to-do list to provide this capability, I just need to do more research.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 27th, 2005, 2:17 pm 
Chris wrote:
Quote:
but neither one is suitable
Was just for informational purpose, as often :wink:. Thx for your effort. :D


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, Google [Bot], Yahoo [Bot] and 27 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group