先绑定窗口为后台模式dm.BindWindow(hwnd,"dx2","dx","dx",0)然后截取图片//截取动画dm_ret=dm.CaptureGif(0,0,2000,2000,"screen.gif",100,3000)//截取静态dm_ret=dm.CaptureGif(0,0,2000,2000,"screen.gif",0,0)