没必要自己做这个功能,直接用现成的
ClipBoard.ClearDim proc As new Processproc.File = ApplicationPath & "/capture.exe"proc.WaitForClose = Trueproc.StartIf ClipBoard.GetImage IsNot Nothing Then msgbox("保存到d盘") ClipBoard.GetImage.save("d:\test.jpg")End If