Slythfox Posted September 21, 2006 Posted September 21, 2006 How can I take screenshots of the desktop and save it to a file? It needs to run invisibly so that I can use it in an autoit script. It also needs to be an open source solution.I searched this forum and found this. This is exactly what I want. Except the issue is that the dll used to make the screenshot app isn't open source! (or is it?)
Moderators SmOke_N Posted September 21, 2006 Moderators Posted September 21, 2006 How can I take screenshots of the desktop and save it to a file? It needs to run invisibly so that I can use it in an autoit script. It also needs to be an open source solution.I searched this forum and found this. This is exactly what I want. Except the issue is that the dll used to make the screenshot app isn't open source! (or is it?)Why does the dll have to be open source? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Slythfox Posted September 21, 2006 Author Posted September 21, 2006 (edited) Why does the dll have to be open source?Well it doesn't have to be open "source," but under a license where it can be legally redistributed. I don't need the source code, just the binary (.exe or .dll). Edited September 21, 2006 by Slythfox
Moderators SmOke_N Posted September 21, 2006 Moderators Posted September 21, 2006 Well it doesn't have to be open "source," but under a license where it can be legally redistributed. I don't need the source code, just the binary (.exe or .dll).LazyCat has offered it to be freely distributed. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Slythfox Posted September 22, 2006 Author Posted September 22, 2006 (edited) LazyCat has offered it to be freely distributed.I just realised it takes horrible screen pictures... Like 24bit color or something...However, using the printscreen button on my keyboard creates a good image. Is it possible to an autoit program that discreetly pushes the printscreen button, and pastes the screenshot into a file? Edited September 22, 2006 by Slythfox
Fossil Rock Posted September 29, 2006 Posted September 29, 2006 Send{PRINTSCREEN} Agreement is not necessary - thinking for one's self is!
rambo3889 Posted September 29, 2006 Posted September 29, 2006 (edited) I remember that lazycats dll is open sourceedit1= At least it is possible to view the source at http://www.autoitscript.com/fileman/users/Lazycat/files/captdll_src.zip Edited September 29, 2006 by rambo3889 My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youre the best in town Fight!
Kohr Posted September 29, 2006 Posted September 29, 2006 I am doing something similar now. Here is how you can do it. 1. Capture the image and save as a file. 1a. Use lazycat dll to save as jpg. 1b. Use MwSnap (or some other tool like IrfanView but it is only free for non commercial)to save as .png. 2. Use the functions in the UDF Word.au3 to save this file to a Word document. I had to use MwSnap vs. the dll simply because .png files are smaller than .jpg and I am inserting 100+ screen images at a time into word. Kohr AutoIt LinksAutoIt CrapsGrid_PixelSearchAdvancedPixelGrab
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now