Jump to content


Photo

Screen Capture with Transparent Windows and Mouse Cursor


  • Please log in to reply
207 replies to this topic

#1 Sean

Sean
  • Members
  • 2462 posts

Posted 07 April 2007 - 12:58 PM

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.

#2 Roland

Roland
  • Members
  • 307 posts

Posted 07 April 2007 - 04:55 PM

Awesome, thanks. The client area option is exactly what I need.

#3 BoBo

BoBo
  • Guests

Posted 07 April 2007 - 05:21 PM

:D *applaus* :D

#4 jballi

jballi
  • Members
  • 940 posts

Posted 07 April 2007 - 05:23 PM

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

#5 Sean

Sean
  • Members
  • 2462 posts

Posted 08 April 2007 - 05:13 AM

Thanks, guys. :)

#6 SomeGuy

SomeGuy
  • Guests

Posted 16 August 2007 - 05:44 PM

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

#7 RobOtter

RobOtter
  • Members
  • 133 posts

Posted 27 August 2007 - 10:41 PM

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:

#8 Sean

Sean
  • Members
  • 2462 posts

Posted 28 August 2007 - 01:38 AM

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")


#9 RobOtter

RobOtter
  • Members
  • 133 posts

Posted 28 August 2007 - 05:39 AM

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?

#10 Sean

Sean
  • Members
  • 2462 posts

Posted 28 August 2007 - 06:28 AM

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.

#11 RobOtter

RobOtter
  • Members
  • 133 posts

Posted 28 August 2007 - 09:10 PM

Hah! Got it and it works like a charm!
Many thanks for all your efforts!

#12 Nogbadthebad

Nogbadthebad
  • Guests

Posted 30 August 2007 - 07:15 PM

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

#13 engunneer

engunneer
  • Fellows
  • 9162 posts

Posted 30 August 2007 - 11:53 PM

use WinGetPos to know where the window is, then do the math on the coordinates.

#14 skydreams

skydreams
  • Guests

Posted 19 November 2007 - 09:48 PM

Sean,

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

Thanks

#15 engunneer

engunneer
  • Fellows
  • 9162 posts

Posted 19 November 2007 - 10:07 PM

you can put it wherever you want. he provides the function to do so.