Author: Sean Last Modified: 20090103
Simple, but powerful screenshot capture utility in a library form. It'll also capture the transparent windows and/or the mouse cursor, according to the options.
sc_Ansi4Unicode(pString)
sc_CaptureCursor(mDC, nL, nT)
sc_CaptureScreen(aRect, bCursor, sFileTo, nQuality)
sc_Convert(sFileFr, sFileTo, nQuality)
sc_CreateDIBSection(hDC, nW, nH, bpp = 32, ByRef pBits = "")
sc_SaveHBITMAPToFile(hBitmap, sFile)
sc_SetClipboardData(hBM)
sc_Unicode4Ansi(ByRef wString, sString)
sc_Zoomer(hBM, nW, nH, znW, znH)
For more details of the functions's parameters and return value, please see it's source code.
It REQUIREs GdiPlus.dll.
Added by me a prefix "sc_" to all functions and renamed file from "ScreenCapture.ahk" to "sc.ahk".
For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=18146
nonexistent
; #Include sc.ahk #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% ; Capture current window with cursor to file screen.jpg with quality setting to 70%. Pause:: sc_CaptureScreen(1, true, "screen.jpg", "70") Return