Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Screen Capture with Transparent Windows and Mouse Cursor


  • Please log in to reply
245 replies to this topic
Sean
  • Members
  • 2462 posts
  • Last active: Feb 07 2012 04:00 AM
  • Joined: 12 Feb 2007
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.

Roland
  • Members
  • 307 posts
  • Last active: Mar 09 2014 07:55 PM
  • Joined: 08 Jun 2006
Awesome, thanks. The client area option is exactly what I need.

BoBo
  • Guests
  • Last active:
  • Joined: --
:D *applaus* :D

jballi
  • Members
  • 1029 posts
  • Last active:
  • Joined: 01 Oct 2005
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! :D

Sean
  • Members
  • 2462 posts
  • Last active: Feb 07 2012 04:00 AM
  • Joined: 12 Feb 2007
Thanks, guys. :)

SomeGuy
  • Guests
  • Last active:
  • Joined: --
This is one of the best things I have ever seen so useful you deserve a large lumpsum of money

RobOtter
  • Members
  • 133 posts
  • Last active: Jul 24 2014 11:29 AM
  • Joined: 30 Jan 2005
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:

Sean
  • Members
  • 2462 posts
  • Last active: Feb 07 2012 04:00 AM
  • Joined: 12 Feb 2007

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:

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:

Convert(0, A_Temp . "\screen.png")


RobOtter
  • Members
  • 133 posts
  • Last active: Jul 24 2014 11:29 AM
  • Joined: 30 Jan 2005
Just woke up and found your answer... Thanks! Some jobs are done at sleep :)
Unfortunately, the link in your first post still points to the old version. Have you updated the file elsewhere?

Sean
  • Members
  • 2462 posts
  • Last active: Feb 07 2012 04:00 AM
  • Joined: 12 Feb 2007

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.

RobOtter
  • Members
  • 133 posts
  • Last active: Jul 24 2014 11:29 AM
  • Joined: 30 Jan 2005
Hah! Got it and it works like a charm!
Many thanks for all your efforts!

Nogbadthebad
  • Guests
  • Last active:
  • Joined: --
How do I capture a co-ordinated portion of the active window?
Thanks for you help!

engunneer
  • Moderators
  • 9162 posts
  • Last active: Sep 12 2014 10:36 PM
  • Joined: 30 Aug 2005
use WinGetPos to know where the window is, then do the math on the coordinates.

skydreams
  • Guests
  • Last active:
  • Joined: --
Sean,

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

Thanks

engunneer
  • Moderators
  • 9162 posts
  • Last active: Sep 12 2014 10:36 PM
  • Joined: 30 Aug 2005
you can put it wherever you want. he provides the function to do so.