"Problem Steps Recorder" - The new tool in Windows 7

The Problem Steps Recorder is the new debug tool in Windows 7. This tool could capture the steps you take on a computer automatically, and generate a MHTML file in a zip. With this tool, you can easy to capture the steps which cause the problem happened, and also easy to read by developer. This tool is integrated with Windows 7, you can find this tool under C:/Windows/System32.

 

 

How to use psr on your computer

 

  1. Open Problem Steps Recorder by clicking the Start  button, and then typingpsr . In the list of results, click psr .

  2. Click Start Record . On your computer, go through the steps on your computer to reproduce the problem. You can pause the recording at any time, and then resume it later.

  3. Click Stop Record .

  4. In the Save As  dialog box, type a name for the file, and then click Save  (the file is saved with the .zip file name extension).

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
1. 安装 recorder-js 可以通过 npm 包管理工具进行安装: ``` npm install recorder-js ``` 2. 导入 recorder-js 在需要使用 recorder-js 的文件中,可以通过以下方式导入 recorder-js: ``` import Recorder from 'recorder-js'; ``` 3. 创建 Recorder 实例 创建 Recorder 实例的方式如下: ``` const recorder = new Recorder({ sampleRate: 44100, numChannels: 2, }); ``` 在创建实例时,可以传递一个包含采样率和声道数的配置对象。 4. 开始录制 要开始录制,可以使用 Recorder 实例的 `start` 方法: ``` recorder.start(); ``` 5. 停止录制 停止录制可以使用 Recorder 实例的 `stop` 方法: ``` recorder.stop(); ``` 6. 导出录制的音频 可以使用 Recorder 实例的 `exportWAV` 方法导出录制的音频文件: ``` recorder.exportWAV((blob) => { const url = URL.createObjectURL(blob); // do something with the audio blob URL }); ``` 在导出音频时,需要传递一个回调函数,该函数接收一个包含音频文件数据的 Blob 对象。可以使用 `URL.createObjectURL` 方法将 Blob 对象转换为可用于播放或下载的 URL。 7. 可选步骤:添加事件监听器 可以为 Recorder 实例添加事件监听器,以便在录制或导出音频时获取一些状态或错误信息。例如,可以添加 `dataAvailable` 事件监听器,在导出音频时获取 Blob 对象: ``` recorder.addEventListener('dataAvailable', (e) => { const url = URL.createObjectURL(e.detail); // do something with the audio blob URL }); ``` 8. 完整示例 以下是一个使用 recorder-js 录制音频并导出音频文件的完整示例: ``` import Recorder from 'recorder-js'; const recorder = new Recorder({ sampleRate: 44100, numChannels: 2, }); let isRecording = false; // start recording document.getElementById('start').addEventListener('click', () => { isRecording = true; recorder.start(); }); // stop recording and export audio document.getElementById('stop').addEventListener('click', () => { isRecording = false; recorder.stop(); }); // export audio when data is available recorder.addEventListener('dataAvailable', (e) => { const url = URL.createObjectURL(e.detail); // do something with the audio blob URL }); // continuously record audio while isRecording is true recorder.addEventListener('dataAvailable', (e) => { if (isRecording) { recorder.start(); } }); // play recorded audio document.getElementById('play').addEventListener('click', () => { recorder.exportWAV((blob) => { const url = URL.createObjectURL(blob); const audio = new Audio(url); audio.play(); }); }); ```

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值