我需要知道如何通过vbscript截取屏幕截图我看到这个功能
Function CaptureScreenShot(ScreenshotPath )
'Generate Name of the Image
strimgFileName="Img\Img" & Day(Date)& Month(Date) & Year(Date) & Hour(Now) & Minute(Now) & Second(Now) &".jpg"
strImgFile= ScreenshotPath & strimgFileName
'Capture failure Screen shot
Set objPic = Sys.Desktop.Picture()
'Save captured Screen shot
ExecutionStatus = objPic.SaveToFile(strImgFile)
'Return Captured image name
CaptureScreenShot=".\" & strimgFileName
End Function
但它不起作用! idk为什么任何人都可以给我一个好的代码来拍摄屏幕截图并将其保存在temp dircetory thx all