PDA

View Full Version : EXECaptureWindow - EXE - Window - Capture - Intrigued



Intrigued
03-12-2006, 10:13 AM
Now you can Window Capture (think: screen capture but specific to one window and the contents within such window's boarders!) any visible Window and save such as a Bitmap (only .bmp for now) image!

AMS 6 exported project file (.apz):

http://www.amsuser.com/ams/examples/EXECaptureWindow-AMS6-Intrigued.apz

Notes: The Global Functions area contains a function previously presented by forum member Worm (thanks Worm'inator) and the other code is in the On Click event area for the button.

Mina
03-12-2006, 10:38 AM
works perfectly!
thanks intrigued

Intrigued
03-12-2006, 10:52 AM
NP and thanks for the invaluable feedback.

Intrigued
03-19-2006, 10:56 AM
Here is the same thing but in a DLL (.dll) version:

AMS 6 (.apz)

www.amsuser.com/ams/examples/DLLCaptureWindow-AMS6-Intrigued.apz

AMS 6 (.exe) example:

www.amsuser.com/ams/examples/DLLCaptureWindow-AMS6-Intrigued.exe

Intrigued
03-19-2006, 05:28 PM
Once again I have updated this .dll today. It now allows for the capturing of the entire screen (which is just a Window) and the typical Window screencaptures.

Please read and study the code in the .apz file to get a graps of what is going on. But, in short, if you pass the first argument as zero (0) then you will get a capture of the entire screen and if you pass a handle to a window you will get that specific window.

Just click on the preview links, as they contain the updated project (.apz) and demo (.exe) files.

Intrigued
03-19-2006, 08:31 PM
(preview) should be (previous) in my last post.

yosik
03-19-2006, 11:41 PM
NIIICCEEE, Intrigued. I like the dll integration. So much more elegant and efficient.
:yes :yes :yes

Yossi

Friethoe
03-20-2006, 02:54 AM
Thanks for sharing this amazing tool with us :yes :yes

Intrigued, you rock!!!!

Thanks again!!! :)

Intrigued
03-20-2006, 03:52 AM
Thanks guys. While working on converting this offering into a .dll I learned some valuable information that should help me with other .dlls, with regards to using them in AMS.

:o

Eagle
03-22-2006, 08:33 AM
Thanks for sharing and improving this one I-Man :cool

Intrigued
03-22-2006, 05:33 PM
NP. I have other updates to incorporate. I have five (5) ideas and I see at least a couple making it into the next release (when ever I get around to that).

:yes

Solmos
04-07-2007, 01:19 PM
Hi

Very thanks for DLL, works perfect!!!

But is only bmp, result 2.8 MG for image...

żone dll for jpg please for capture full screen (+/- 200 KB)?

thanks

(pardon by my english...)

Worm
04-07-2007, 02:20 PM
try this

http://www.indigorose.com/forums/showthread.php?t=8797&highlight=window+capture

Solmos
04-07-2007, 03:22 PM
Not...

I needed capture FULL SCREEN

thanks

Worm
04-07-2007, 03:25 PM
look farther down the thread.

http://www.indigorose.com/forums/showpost.php?p=39761&postcount=4

Jonas DK
04-07-2007, 05:34 PM
Fabules

This is why I love AMS so..

People sharing there gold and brilliant ideas.

Cheers,
Jonas

Solmos
04-09-2007, 11:30 AM
as I can obtain scrip simple?,

without having to make all that see the active windows, with the DLL of Intrigued it is very simple, but with the one of Worm he is very dificil much and require scrip (and view active windows...),

Intrigued please, it updates the DLL to make complete screen captures in jpg (about 200 kb of size).

Very thanks




Example very simple:

DLL.CallFunction(_SourceFolder.."\\Intrigued.dll", "CAPWIN", Enclose(0)..","..Enclose(_SourceFolder.."\\Shoots\\capture.bmp"), DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)

Example very hard with active windows....................

http://www.indigorose.com/forums/sho...window+capture


Intrigued please, update DLL :rolleyes :rolleyes

Intrigued
04-09-2007, 07:19 PM
Updated Version: (April 9, 2007)

Supported file types are now:


BMP
JPG
PNG


Note: This is in an .exe format and you will need to pass one more argument to choose the filter you want (e.g. jpg).

0 = BMP
1 = JPG
2 = PNG

I have updated this .apz, that gives examples for each filter type.

Use the same link:

http://www.amsuser.com/ams/examples/EXECaptureWindow-AMS6-Intrigued.apz

Problems? Let me know.

Enjoy!

(tested on Windows Vista)

RizlaUK
04-09-2007, 09:41 PM
Hey Intrigued, Thanks for the update :yes

Solmos
04-10-2007, 12:30 AM
very thanks Intrigued!!!!!!!!!!!!!!!!!

but, not capture full screen???

and sizes is:

BMP: 860 KB
JPG: 860 KB
PNG: 860 KB

żżżż????

No change size in distint formats? I needed full screen image, in +/- 200 kB, its is posible?

and, is one exe file, its posible in dll file?

thanks

sside
04-10-2007, 06:59 PM
http://indigorose.com/forums/showthread.php?t=17227

Regards
sside

Intrigued
04-10-2007, 08:05 PM
sside, I notice you have been posting with the note that one needs .NET 2.0. Is that also something users need to be aware of with this .dll?

Intrigued
04-10-2007, 08:38 PM
Update:

*Added in support for JPEG compression, where "0" is the highest compression (picture quality suffers), to "10" the least amount of compression (picture quality is best).

Note: The code is better commented to help explain how to use this .exe and you can still use the links supplied above to get the updated version.

sside
04-10-2007, 09:24 PM
sside, I notice you have been posting with the note that one needs .NET 2.0. Is that also something users need to be aware of with this .dll?


I belive it is.
There are lots of people that have not moved to net (yet). So for those folks i think is neccessary to know that net framework 2.0 is a requirement.
Another requirement would be the os. Sometime the windows api is different from os to os (win 95/98/me vs nt/2000/xp).

Our job is to give hope when there is no hope ...:)

Worm
04-10-2007, 09:35 PM
I-Man lives!! Yahoooo!

Intrigued
04-10-2007, 10:14 PM
Update, now in .dll form!
www.amsuser.com/ams/examples/DLLCaptureWindow-AMS6-Intrigued

@Worm, I'm only allowed out after dark now. 8-D

Intrigued
04-12-2007, 12:11 AM
This link was posted in two spots, both missing the .apz extension. Sorry about that. Here is the proper link:

http://www.amsuser.com/ams/examples/DLLCaptureWindow-AMS6-Intrigued.apz

Note: if the file downloads with a .zip extension for some reason, change it to .apz.

Intrigued
04-08-2008, 07:05 PM
www.amsuser.com/ams/examples/EXEScreenShot-others-Intrigued.apz

Capture and then print a window. (objects in AMS with window handles should print as well, by themselves, though I have not tried this yet. Check the SetProperties Action for objects to see if the Handle property is available)