Windows系统下自动截图功能

电商经验 Alan 9年前 (2015-05-05) 5351次浏览 0个评论 扫描二维码

本功能通过适用于Firefox的Pearl Crescent插件来实现,免费基础版安装地址:

http://pearlcrescent.com/products/pagesaver/pagesaverbasic-2.8.2.xpi

安装成功会在浏览器地址栏右侧出现一个照相机按钮,点击即可进行截屏。点击下拉框中的Page Saver Options…可以设置保存的文件名(包含%Y等变量),保存路径,图片格式等。

Windows系统下自动截图功能

命令行实现方式:

默认情况下会提示firefox不是内部指令

‘firefox’ is not recognized as an internal or external command, operable program or batch file.

可以选择1.cd 到firefox安装目录,如C:\Program Files (x86)\Mozilla Firefox再执行如下命令(测试了添加环境变量未生效)

指定宽度和高度

firefox -saveimage http://alanhou.org/ -width 800 -height 600
设定延时:

firefox -saveimage http://alanhou.org/ -savedelay 1000
抓取Flash内容

firefox -saveimage http://www.adobe.com/ -savedelay 1000 -captureflash

 

在Windows上创建定时任务,以Win8为例,按下快捷键Win+X > Control Panel > System and Security(分类模式下) > Administrative Tools > Schedule Tasks,或在命令行中输入taskschd.msc

添加一个.bat文件,需要填写全路径,内容类似

C:/”Program Files (x86)”/”Mozilla Firefox”/firefox -saveimage http://alanhou.org/

若在保存时提示Task Scheduler cannot apply your changes.The user account is unknown, the password is incorrect,or the account does not have permission to modify the task. 请改用管理员权限进行测试或在我的电脑上右击点击管理输入管理员密码再添加定时任务。

喜欢 (3)
[]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址