以下のスクリプトを使えば行けると思います!
#module
#uselib "user32.dll"
#cfunc GetDC "GetDC" int
#cfunc GetWindowDC "GetWindowDC" int
#func ReleaseDC "ReleaseDC" int,int
#cfunc GetForegroundWindow "GetForegroundWindow"
#cfunc GetDesktopWindow "GetDesktopWindow"
#func GetWindowRect "GetWindowRect" int,int
#func GetClientRect "GetClientRect" int,int
#uselib "gdi32.dll"
#func BitBlt "BitBlt" int,int,int,int,int,int,int,int,int
#define NULL 0
#define SRCCOPY 0x00CC0020
#define CAPTUREBLT 0x40000000
#deffunc CaptureWindow int hwndTarget, int clientOnly
dim rect, 4
if clientOnly {
GetClientRect hwndTarget, varptr(rect)
} else {
GetWindowRect hwndTarget, varptr(rect)
}
if stat == 0 {
return 1
}
sx = rect(2) - rect(0)
sy = rect(3) - rect(1)
buffer ginfo_sel, sx, sy, 0
if clientOnly {
hdcTarget = GetDC(hwndTarget)
} else {
hdcTarget = GetWindowDC(hwndTarget)
}
BitBlt hdc, 0, 0, sx, sy, hdcTarget, 0, 0, SRCCOPY | CAPTUREBLT
ReleaseDC hwndTarget, hdcTarget
return 0
#deffunc CaptureActiveWindow int clientOnly
CaptureWindow GetForegroundWindow(), clientOnly
return
#global
pressedButtonId = stat
buffer 1,640,480;例としてバッファー1に640x480の画面をキャプチャ(?)します
CaptureActiveWindow 1;画面をキャプチャ
gsel 1 : bmpsave "保存したい名前.bmp" ;キャプチャしたやつをbmpで保存
gsel 0,2