BigDaddyO Posted April 4, 2007 Share Posted April 4, 2007 (edited) I saw someone using a screen capture utility Called ScreenHunter to capture just certian sections of a window. It's free but for an individual only, Companies have to pay for it.I decieded to use LazyCats CaptDll.dll file to make my own version. Launch the script, perform the initial setup by setting the Hotkeys and places to save the screenshots. Launch again and hit the hotkey you specified for Region, You can then click and drag over the section you want to take a screenshot of.This is the first program that I have done with the OnEvent mode so let me know if I'm doing anything wrong with that please.Edit: Get LazyCat's DLL HereEdit2: 1. Fixed Problem when dragging mouse from bottom right to top left 2. Now using guictrlcreategroup to display a box around the area selected when doing a Region Screen captureEdit3: Changed the selection box again, hopefully this will fix any issues.Edit 4: 1. Updated to allow save as .bmp or .jpg 2. Added the trusty ReduceMemory function from wOuter. Now uses ~700kb of memory "ScreenHunter uses ~4MB" 3. added FileInstall for the DLLMikeScreenCap.au3 Edited April 5, 2007 by MikeOsdx Link to comment Share on other sites More sharing options...
BigDaddyO Posted April 4, 2007 Author Share Posted April 4, 2007 I have been having a heck of a time with the graphical representation of the Mouse selection for the Region Screen Capture. I think I have finally gotten it figured out, I have updated the code above. Mike Link to comment Share on other sites More sharing options...
magician13134 Posted April 5, 2007 Share Posted April 5, 2007 Let me be the first to congratulate you on a job well done! Love the script! A few things, though: Use FileInstall() for the dll Allow JPG and BMP Allow copy to clipboard If two dropboxes are left blank, it says to assign different hotkeys I'm too dumb to figure out the capture by region. Over all, GREAT WORK! Visit Magic Soft Inc. for some of my software Link to comment Share on other sites More sharing options...
Skrip Posted April 5, 2007 Share Posted April 5, 2007 Very good job! Very! [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
BigDaddyO Posted April 5, 2007 Author Share Posted April 5, 2007 Let me be the first to congratulate you on a job well done! Love the script! A few things, though:Use FileInstall() for the dllAllow JPG and BMPAllow copy to clipboardIf two dropboxes are left blank, it says to assign different hotkeysI'm too dumb to figure out the capture by region.Over all, GREAT WORK!I have added the FileInstall, BMP/JPG, and fixed the multiple blank hotkeys. I can't seem to figure out how to send the images to the clipboard. I have found several posts on how to retrieve from the clipboard but not send to. if anyone has an idea I'd love to see it.I am working on a help file that will show how to use the Region capture. I Added an About to the taskmenu but does nothing yet.Script updated in the first post.Mike Link to comment Share on other sites More sharing options...
magician13134 Posted April 5, 2007 Share Posted April 5, 2007 Also it'd be nice if it didn't have to restart Visit Magic Soft Inc. for some of my software Link to comment Share on other sites More sharing options...
WeMartiansAreFriendly Posted April 5, 2007 Share Posted April 5, 2007 Also it'd be nice if it didn't have to restartbetter yet, just reread the settings. Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet() Link to comment Share on other sites More sharing options...
BigDaddyO Posted April 6, 2007 Author Share Posted April 6, 2007 Yeah, I have already resolved the restarting thing but I havn't posted the code yet. Since it was my first time using the OnEvent features of AutoIT I was a little confused. I was putting a While statement after creating the Setup gui and coudn't figure out why my script was freezing in that function, all I could do was exit. I have since realized that I don't need any aditional While statements to keep aditional gui screens open using the OnEvent feature. A co-worker requested an option of Send to Printer, so I am going to create a GUI window that will display after a screen capture "Unless silent mode is selected" that will allow you several options, Send to Printer, E-Mail, and if I can figure it out Send to Clipboard. Once I have those in their I will upload a new version. Mike Link to comment Share on other sites More sharing options...
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