本帖最后由 batman 于 2011-7-12 12:37 编辑
加上这一句看行不行“mshta vbscript:createobject("wscript.shell").sendkeys("{enter}")(window.close)”- @echo off
- setlocal enabledelayedexpansion
- rem 指定保存截图的路径
- set ScFolder=C:\BatHome\Batcher
- rem 规定指定截图3个小时
- set hours=3
- set /a minutes=hours*60
- set count=1
- :LoopPrtSc
- mshta vbscript:createobject("wscript.shell").sendkeys("{enter}")(window.close)
- nircmd cmdwait 60000 savescreenshot "%ScFolder%\screenshot_!count!.jpg"
- if !count! equ %minutes% (
- goto :eof
- ) else (
- set /a count+=1
- goto :LoopPrtSc
- )
复制代码
|