# sc

作者: Sean 最近更新时间: 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)

关于函数的参数和返回值, 请参阅其源码.

#### 备注

It REQUIREs GdiPlus.dll.
Added by me a prefix "sc_" to all functions and renamed file from "ScreenCapture.ahk" to "sc.ahk".

关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?t=18146

#### 许可

不存在

#### 示例

    ; #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