Jump to content



Photo

CaptureIt - Screen Capture Utility


  • Please log in to reply
54 replies to this topic

#1 MrCreatoR

MrCreatoR

    Must AutoIt!

  • MVPs
  • 3,241 posts

Posted 21 February 2008 - 05:04 AM

CaptureIt v1.03

Posted Image

This utility designed to capture images of the screen.

============
Main Features:
============
  • Full Screen Capture.
  • Window Capture.
  • Selected area capture.
  • Save captured image in silent mode.
  • Open captured image in graphic editor.
  • Print captured image.
  • Put captured image to clipboard.
  • Upload captured image (to imageshack.us).
  • Images format support:
    PNG
    GIF
    JPG - Quality can be set.
    BMP - Format can be set.

Download Page or Downloads Section
[Sources for AutoIt 3.2.10.0+ included in the archive]

Enjoy! Posted Image


============
History Version:
============

Spoiler

Edited by MrCreatoR, 04 September 2011 - 08:40 PM.

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

Posted Image AutoIt Russian CommunityPosted Image Projects: ATT - Application Translate Tool [new] | BlockIt - Block files & folders [new] | SIP - Selected Image Preview [new] | SISCABMAN - SciTE Abbreviations Manager [new] | AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramPosted Image UDFs: OnAutoItErrorRegister - Handle AutoIt critical errors [new] | AutoIt Syntax Highlight [new] | Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDFPosted Image Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation DemoLike the examples/UDFs? Please rate the topic (up-right corner of the post header: Rating Posted Image)* === My topics === *

==========================================================Posted Image==========================================================

AutoIt is simple, subtle, elegant. © AutoIt Team






#2 gseller

gseller

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 1,057 posts

Posted 21 February 2008 - 07:23 AM

ZZZiiiinnnngggg!!! That gets a five star salute from me!! Very Nice!! :) You musta been working on this for a while?

#3 MrCreatoR

MrCreatoR

    Must AutoIt!

  • MVPs
  • 3,241 posts

Posted 21 February 2008 - 08:36 AM

Thanks gesller!

You musta been working on this for a while?

Well, yes, the last few weeks i think :) - but the idea is very old, when Paulie posted the Au3Library, if i am not wrong, the functions _ScreenCapture was first introduced there.
Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

Posted Image AutoIt Russian CommunityPosted Image Projects: ATT - Application Translate Tool [new] | BlockIt - Block files & folders [new] | SIP - Selected Image Preview [new] | SISCABMAN - SciTE Abbreviations Manager [new] | AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramPosted Image UDFs: OnAutoItErrorRegister - Handle AutoIt critical errors [new] | AutoIt Syntax Highlight [new] | Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDFPosted Image Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation DemoLike the examples/UDFs? Please rate the topic (up-right corner of the post header: Rating Posted Image)* === My topics === *

==========================================================Posted Image==========================================================

AutoIt is simple, subtle, elegant. © AutoIt Team


#4 TPaul81

TPaul81

    Seeker

  • Active Members
  • 49 posts

Posted 21 February 2008 - 09:27 AM

MsCreator, seriously, this is one of these stuff that really really REALLY made my day.

I think this should be a sticky or something!

#5 icadea

icadea

    Prodigy

  • Active Members
  • PipPipPip
  • 159 posts

Posted 21 February 2008 - 09:33 AM

this is a good one. thanks

#6 rasim

rasim

    Gray Scripter

  • Active Members
  • PipPipPipPipPipPip
  • 1,708 posts

Posted 21 February 2008 - 02:08 PM

MsCreatoR
Congratulations! Great job! I like it and i shall use it! Thank you for good program and example! :)
OS: Windows XP SP3, AutoIt version: 3.3.0.0Posted Image My Projects: Free_Resources | Splitter | wgetGUI | UnRARIt | USBMon | CDROM-Control | Volume Serial Changer | WinTrayPosted Image My UDFs: _ScreenSetting | ListView_Progress | ContextHelp | ToolTip_UDF | UnRAR | Zip32 | BassMod | ShellTreeView | GuiHotKey | 7ZipPosted Image My Examples: TrayIcon_Click | SystemTray_Refresh | _ListView_Sort | CPUmonLike above scripts? Please rate the topic Posted Image

#7 Tweaky

Tweaky

    Wayfarer

  • Active Members
  • Pip
  • 68 posts

Posted 02 March 2008 - 11:07 AM

Hi, very nice tool,

Would it be possible to make a screenshot from a whole web page with a scroll???
But only with autoit, no other tool


Tweaky

#8 MrCreatoR

MrCreatoR

    Must AutoIt!

  • MVPs
  • 3,241 posts

Posted 02 March 2008 - 01:48 PM

Thanks to all for the good feedbacks! :)

Would it be possible to make a screenshot from a whole web page with a scroll???

A while ago i asked about this here, but the solution will involve external application usage ;).
Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

Posted Image AutoIt Russian CommunityPosted Image Projects: ATT - Application Translate Tool [new] | BlockIt - Block files & folders [new] | SIP - Selected Image Preview [new] | SISCABMAN - SciTE Abbreviations Manager [new] | AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramPosted Image UDFs: OnAutoItErrorRegister - Handle AutoIt critical errors [new] | AutoIt Syntax Highlight [new] | Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDFPosted Image Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation DemoLike the examples/UDFs? Please rate the topic (up-right corner of the post header: Rating Posted Image)* === My topics === *

==========================================================Posted Image==========================================================

AutoIt is simple, subtle, elegant. © AutoIt Team


#9 ptrex

ptrex

    Universalist

  • MVPs
  • 2,399 posts

Posted 02 March 2008 - 07:44 PM

@MsCreatoR

Very nice application !!

Regarding

Would it be possible to make a screenshot from a whole web page with a scroll???


I use Fotofiltre + one of the numerous plugins.

Regards

ptrex

#10 Achilles

Achilles

    Achilles == Ichigo

  • Active Members
  • PipPipPipPipPipPip
  • 2,897 posts

Posted 02 March 2008 - 08:03 PM

Really nice work! My only objection is the GUI looks rather odd with the default windows tabs. The tray looks great.

I would suggest using a hotkey box instead of three checkboxes and a combolist, I have some code that has a great example.

Plain Text         
#include<GuiEdit.au3> #include<SendMessage.au3> #include<WindowsConstants.au3> #include <GUIConstantsEx.au3> #include <WinAPI.au3> HotKeySet('{CAPSLOCK}', '_ExcludeHotkey') HotKeySEt('{NUMLOCK}', '_ExcludeHotkey') Global Const $HKM_SETHOTKEY = $WM_USER + 1 Global Const $HKM_GETHOTKEY = $WM_USER + 2 Global Const $HKM_SETRULES = $WM_USER + 3 Global Const $HOTKEYF_ALT = 0x04 Global Const $HOTKEYF_CONTROL = 0x02 Global Const $HOTKEYF_EXT = 0x80; Extended key Global Const $HOTKEYF_SHIFT = 0x01 ; invalid key combinations Global Const $HKCOMB_A = 0x8; ALT Global Const $HKCOMB_C = 0x4; CTRL Global Const $HKCOMB_CA = 0x40; CTRL+ALT Global Const $HKCOMB_NONE = 0x1; Unmodified keys Global Const $HKCOMB_S = 0x2; SHIFT Global Const $HKCOMB_SA = 0x20; SHIFT+ALT Global Const $HKCOMB_SC = 0x10; SHIFT+CTRL Global Const $HKCOMB_SCA = 0x80; SHIFT+CTRL+ALT $gui_Main = GUICreate('Get Hotkey', 220, 90) $bt = GUICtrlCreateButton('See Value', 10, 50, 200, 30);     GUICtrlSetState(-1, $GUI_DEFBUTTON) $hWnd = _WinAPI_CreateWindowEx (0, 'msctls_hotkey32', '', BitOR($WS_CHILD, $WS_VISIBLE), 10, 10, 200, 25, $gui_Main) _SendMessage($hWnd, $HKM_SETRULES, BitOR($HKCOMB_NONE, $HKCOMB_S), _     BitOR(BitShift($HOTKEYF_ALT, -16), BitAND(0, 0xFFFF))); add ALT to invalid entries GUISetState() While 1     Switch GUIGetMsg()         Case $GUI_EVENT_CLOSE             ExitLoop         Case $bt             $value = _GetCode($hWnd); $value is now equal to the string representation of your hotkey, like ^!q for example     EndSwitch WEnd _WinAPI_DestroyWindow ($hWnd) Exit Func _GetCode($hWnd)     $i_HotKey = _SendMessage($hWnd, $HKM_GETHOTKEY) ;~  Msgbox(0, '', $i_Hotkey)     $n_Flag = BitShift($i_HotKey, 8); high byte     $i_HotKeyNew = BitAND($i_HotKey, 0xFF); low byte     $sz_Flag = ""     $subtract = 0     If BitAnd($n_Flag, $HOTKEYF_CONTROL) Then         $sz_Flag &= "CTRL + "         $subtract += 512     EndIf             If BitAnd($n_Flag, $HOTKEYF_SHIFT) Then         $sz_Flag &= " SHIFT + "         $subtract += 256     EndIf             If BitAnd($n_Flag, $HOTKEYF_ALT) Then         $sz_Flag &= " ALT + "         $subtract += 1024     EndIf         If $i_Hotkey - $subtract > 90 then         For $index = 96 to 105             If $i_Hotkey - $subtract = $index then $sz_Flag &= 'NUM ' & $index - 96         Next                         For $index = 112 to 123             If $i_Hotkey - $subtract = $index then                 $sz_Flag &= ' F' & $index - 111             EndIf         Next                 If $i_Hotkey - $subtract >= 2081 and $i_Hotkey - $subtract <= 2093 then             $sz_Flag &= Chr($i_hotkeyNew)         EndIf     Else         $sz_Flag &= Chr($i_Hotkey - $subtract)     EndIf     $string = $sz_Flag                     $temp = StringSplit($string, '+')         $lastTerm = StringLower(StringStripWS($temp[Ubound($temp) - 1], 8))     If StringLen($lastTerm) > 1 then         If StringLeft($lastTerm, 1) = 'F' then             $append = '{' & StringUpper($lastTerm) & '}'         ElseIf StringLeft($lastTerm, 3) = 'NUM' then             $append = '{NUMPAD' & StringRight($lastTerm, 1) & '}'         EndIf     Else         $temp = StringLower(StringRight($string, 1))         If $temp = '!' then             $append = '{PGUP}'         ElseIf $temp = '"' then             $append = '{PGDN}'         ElseIf $temp = '$' then             $append = '{HOME}'         ElseIf $temp = '#' then             $append = '{END}'         ElseIf $temp = '-' then             $append = '{INS}'         Else                      $append = StringLower(StringRight($string, 1))         EndIf     EndIf         $hotkeyAssignment = ''     If StringInStr($string, 'CTRL') > 0 then         $hotkeyAssignment &= '^'     EndIf     If StringInStr($string, 'SHIFT') > 0 then         $hotkeyAssignment &= '+'     EndIf     If StringInStr($string, 'ALT') > 0 then         $hotkeyAssignment &= '!'     EndIf     $hotkeyAssignment &= $append         Msgbox(0, $sz_Flag, '$i_Hotkey == ' & $i_Hotkey & @CRLF & @CRLF & _         '$i_HotkeyNew == ' & $i_HotkeyNew & @CRLF & @CRLF & _         '$subtract == ' & $subtract & @CRLF & @CRLF & _         '$i_Hotkey - $subtract == ' & $i_hotkey - $subtract & @CRLF & @CRLF & _         'Chr(' & $i_Hotkey & ') = ' & Chr($i_HotKey) & @CRLF & @CRLF & _         'Chr(' & $i_Hotkey & ' - ' & $subtract & ') = ' & Chr($i_HotKey - $subtract) & @CRLF & @CRLF & _         'Chr(' & $i_HotkeyNew & ') = ' & Chr($i_HotKeyNew) & @CRLF & @CRLF & _         'Hotkeyset string == ' & $hotkeyAssignment)         Return $hotkeyAssignment EndFunc Func _ExcludeHotkey()     _SendMessage(_WinAPI_GetFocus(), $HKM_SETHOTKEY) EndFunc


#11 Swift

Swift

    Get Linux Ubuntu Now.

  • Banned (NOT IN USE)
  • 1,706 posts

Posted 02 March 2008 - 08:15 PM

Really...Really...Really....Great MsCreatoR! I love it! How does this work so immaculate? This looks so professional its...so real!

#12 ToyleY

ToyleY

    Wayfarer

  • Active Members
  • Pip
  • 50 posts

Posted 02 March 2008 - 10:13 PM

Very good - nice work.

#13 MrCreatoR

MrCreatoR

    Must AutoIt!

  • MVPs
  • 3,241 posts

Posted 02 March 2008 - 10:56 PM

I would suggest using a hotkey box instead of three checkboxes and a combolist, I have some code that has a great example.

As i mentioned, this box have issues. It's not supporting none ANSI characters, and some special characters can not be used.
Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

Posted Image AutoIt Russian CommunityPosted Image Projects: ATT - Application Translate Tool [new] | BlockIt - Block files & folders [new] | SIP - Selected Image Preview [new] | SISCABMAN - SciTE Abbreviations Manager [new] | AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramPosted Image UDFs: OnAutoItErrorRegister - Handle AutoIt critical errors [new] | AutoIt Syntax Highlight [new] | Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDFPosted Image Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation DemoLike the examples/UDFs? Please rate the topic (up-right corner of the post header: Rating Posted Image)* === My topics === *

==========================================================Posted Image==========================================================

AutoIt is simple, subtle, elegant. © AutoIt Team


#14 myspacee

myspacee

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 649 posts

Posted 03 March 2008 - 01:51 PM

thank you MsCreatoR,
for all good job (and nice www resource).

Is possible to you to isolate only 'selection capture' in a 'new' script ?
(for all newbie as me [want to learn]) :)

Thank you again for source.

M.

#15 myspacee

myspacee

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 649 posts

Posted 14 April 2008 - 08:01 AM

i want to thank again to MsCreatoR.

You open a new way to do my job.

Can you isolate or give us example to have 'selection capture' feature only.
Find a tool that do a lot of thing like your Cropper But have Autoit sorce help us a lot.

Thank you to all

m.

#16 Mojo

Mojo

    Wayfarer

  • Active Members
  • Pip
  • 89 posts

Posted 17 April 2008 - 07:50 AM

Hi folks,

do you know the problem with blocked AutoIt script downloads? - I know it to well - our company's firewall and/or antivirus solution blocks most of the scripts I wanna download. :D

There is actually an easy workaround for that ... password protected archive files.

@MsCreator: could you please pw-protect this (and/or all your scripts in the future?) download and post the password on the download site?

I guess I'm not the only one with this problem, and with that workaround we could finally eliminate those annoying false positive warnings or blockings of the antivirus and firewall products.

I personally would highly appreciate it.

thx & greetz
Mojo
You can fool some of the people all of the time, and all of the people some of the time, but you can not fool all of the people all of the time. Abraham Lincoln - http://www.ae911truth.org/ - http://www.freedocumentaries.org/

#17 Angelia

Angelia

    Seeker

  • Active Members
  • 19 posts

Posted 17 April 2008 - 01:08 PM

Awesome Job!! You had to work on this quite some time!!
5 STARS!

#18 monoceres

monoceres

    asdf

  • MVPs
  • 3,720 posts

Posted 17 April 2008 - 08:44 PM

Really nice work :D
Saves a lot of work for me (Cropping, uploading).
Maybe add a MsgBox confirming upload to imageshack?
Would be nice since I don't want to upload all images to imageshack.

Edited by monoceres, 18 April 2008 - 10:06 PM.

Posted ImageIs the link in my post broken? I do not longer own my domain, all the files are moved to my new domain.Example: http://monoceres.se/test.au3 -> http://andhen.mine.nu/monoceres.se/test.au3

#19 sensalim

sensalim

    Polymath

  • Active Members
  • PipPipPipPip
  • 240 posts

Posted 18 April 2008 - 07:01 PM

Freakin' sweet.

#20 L0c4lh0sT

L0c4lh0sT

    Seeker

  • New Members
  • 1 posts

Posted 30 April 2008 - 08:16 AM

Wow....
Very nice Prog.

But please can you implement an "auto screenshot" function?
And some other pichoster or an option to type in a custom http: adress?

Great Job




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users