Search code examples
delphibug-reportingproblem-steps-recorder

How to integrate Problem Steps Recorder (psr) in my application?


Windows 7 has a wonderful facility called problem steps recorder.
You can start it by typing psr on the command line.

enter image description here

What's the best way to integrate this into a Delphi application?
And is there a COM automation interface for psr?

I want to:

  1. start the recorder from the program (easy: issue a command line and start it);
  2. start recording automatically; (can this be done?)
  3. Preset the filename psr will store the capture in; (how?)
  4. Email the capture to an email address specified in my code.

If there's an alternative tool that does the same stuff I'd love to hear about that as well of course.
Because this is mainly a user-experience issue I'm not interested in automated crash reports, I know madexcept does a wonderful job on those.

I'm interested in seeing a slideshow where the user explains in 4 steps why feature x sucks or does not work as expected.


Solution

  • It can be used from command line:

    psr.exe [/start |/stop][/output ] [/sc (0|1)] [/maxsc ] [/sketch (0|1)] [/slides (0|1)] [/gui (o|1)] [/arcetl (0|1)] [/arcxml (0|1)] [/arcmht (0|1)] [/stopevent ] [/maxlogsize ] [/recordpid ]

    Here you can find more information about command line usage: ctrlf5.net/?p=176 link removed as page 176 is now a nasty malware page

    And here is sample project which automates psr thorught command-line (c#): http://psr4vs.codeplex.com/SourceControl/changeset/view/10645#172579