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 

Screen Capture with Transparent Windows and Mouse Cursor
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Sean



Joined: 12 Feb 2007
Posts: 1141

PostPosted: Sat Apr 07, 2007 1:58 pm    Post subject: Screen Capture with Transparent Windows and Mouse Cursor Reply with quote

I know that there already exist script(s) of the kind. Then, why another one?
It'll also capture the transparent windows and/or the mouse cursor, according to the options.
Please read the comments in the script for the details.

PS. It REQUIREs GdiPlus.dll.

DOWNLOAD ScreenCapture.ahk.


Last edited by Sean on Tue Aug 21, 2007 6:02 am; edited 1 time in total
Back to top
View user's profile Send private message
Roland



Joined: 08 Jun 2006
Posts: 238

PostPosted: Sat Apr 07, 2007 5:55 pm    Post subject: Reply with quote

Awesome, thanks. The client area option is exactly what I need.
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Sat Apr 07, 2007 6:21 pm    Post subject: Reply with quote

Very Happy *applaus* Very Happy
Back to top
jballi



Joined: 01 Oct 2005
Posts: 297
Location: Texas, USA

PostPosted: Sat Apr 07, 2007 6:23 pm    Post subject: Reply with quote

Pretty cool. I wish I had an immediate need for this but now I know where to find it when the time comes. Thanks for sharing! Very Happy
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 1141

PostPosted: Sun Apr 08, 2007 6:13 am    Post subject: Reply with quote

Thanks, guys. Smile
Back to top
View user's profile Send private message
SomeGuy
Guest





PostPosted: Thu Aug 16, 2007 6:44 pm    Post subject: Awesome Reply with quote

This is one of the best things I have ever seen so useful you deserve a large lumpsum of money
Back to top
RobOtter



Joined: 30 Jan 2005
Posts: 121
Location: Darmstadt, Germany

PostPosted: Mon Aug 27, 2007 11:41 pm    Post subject: Reply with quote

Hey Sean, great thing!

One question:
Is there a way to have the image in the clipboard instead of saving it to a file? This would definitely make my day Wink
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 1141

PostPosted: Tue Aug 28, 2007 2:38 am    Post subject: Reply with quote

RobOtter wrote:
Is there a way to have the image in the clipboard instead of saving it to a file? This would definitely make my day Wink

I updated the script with this option. After a thought, I became not so sure if I did it in absolutely right way, however, seems to work in my system XPSP2. The syntax will be: set the sFileTo to 0 like:

Code:
CaptureScreen("100, 100, 400, 400", False, 0)


BTW, if you want to save the hBitmap in the clipboard to the file additionally, you can use Convert(), specifying the first sFileFr to 0 or "", like:

Code:
Convert(0, A_Temp . "\screen.png")
Back to top
View user's profile Send private message
RobOtter



Joined: 30 Jan 2005
Posts: 121
Location: Darmstadt, Germany

PostPosted: Tue Aug 28, 2007 6:39 am    Post subject: Reply with quote

Just woke up and found your answer... Thanks! Some jobs are done at sleep Smile
Unfortunately, the link in your first post still points to the old version. Have you updated the file elsewhere?
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 1141

PostPosted: Tue Aug 28, 2007 7:28 am    Post subject: Reply with quote

RobOtter wrote:
Unfortunately, the link in your first post still points to the old version. Have you updated the file elsewhere?

It's updated in the same place.
Please be sure to clear the cache of your browser before downloading it.
Back to top
View user's profile Send private message
RobOtter



Joined: 30 Jan 2005
Posts: 121
Location: Darmstadt, Germany

PostPosted: Tue Aug 28, 2007 10:10 pm    Post subject: Reply with quote

Hah! Got it and it works like a charm!
Many thanks for all your efforts!
Back to top
View user's profile Send private message
Nogbadthebad
Guest





PostPosted: Thu Aug 30, 2007 8:15 pm    Post subject: Reply with quote

How do I capture a co-ordinated portion of the active window?
Thanks for you help!
Back to top
engunneer



Joined: 30 Aug 2005
Posts: 5957
Location: Pacific Northwest, US

PostPosted: Fri Aug 31, 2007 12:53 am    Post subject: Reply with quote

use WinGetPos to know where the window is, then do the math on the coordinates.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
skydreams
Guest





PostPosted: Mon Nov 19, 2007 10:48 pm    Post subject: Choose a Path Reply with quote

Sean,

Is there a way to designate the path for the output file? I wish it to output the file on my desktop.

Thanks
Back to top
engunneer



Joined: 30 Aug 2005
Posts: 5957
Location: Pacific Northwest, US

PostPosted: Mon Nov 19, 2007 11:07 pm    Post subject: Reply with quote

you can put it wherever you want. he provides the function to do so.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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