18

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.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Johan
  • 74,508
  • 24
  • 191
  • 319
  • 5
    For those who are interested: `U+043C: CYRILLIC SMALL LETTER EM`. – Andreas Rejbrand Dec 15 '11 at 12:08
  • I am particularly interested in why Outlook works so well with PSR. For example, Outlook shows green rectangles around the focused panes that the user typed some input into. – Warren P Dec 15 '11 at 20:04
  • Interesting related information: http://msdn.microsoft.com/en-us/library/ms744822.aspx (UI Automation support in MS Common controls). Having your app be more friendly to UI Automation would probably make it work better with PSR. The thing that keeps me from loving PSR is its "willfull ignorance of keyboard text entry". – Warren P Dec 15 '11 at 20:16
  • @NullUserException, thanks for trying to fix the title. – Johan Dec 15 '11 at 23:24
  • @Johan I know, it's a pain the behind: http://meta.stackexchange.com/questions/112944/the-title-word-filter-is-one-of-the-worst-ideas-ever-implemented-on-so I undid everything after I realized I wouldn't be able to retag it was all said and done. – NullUserException Dec 15 '11 at 23:28
  • 1
    I've used a different workaround for the time being. – NullUserException Dec 15 '11 at 23:29

3 Answers3

11

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

Pol
  • 5,064
  • 4
  • 32
  • 51
  • Way cool, when I type `psr /?` it gives an error though. Ah well that's MS for ya. – Johan Dec 14 '11 at 23:10
  • @Johan - well this error says that you provided (`/?`) incorrect parameter, not that parameters are ignored. This was suspicious. – Pol Dec 14 '11 at 23:18
  • 1
    I just found the original post from Microsoft: http://blogs.msdn.com/b/visualstudioalm/archive/2011/10/04/a-custom-data-diagnostic-adapter-for-visual-studio-coded-ui-test-using-windows-psr.aspx – Johan Dec 14 '11 at 23:46
1

Free alternative I can suggest is called StepsToReproduce. In many aspects it's much more usable - it allows several options for recording (screen/window/region) and has powerful annotation tools.

Sasha Reminnyi
  • 3,442
  • 2
  • 23
  • 27
0

You can also create a desktop icon whose target points to a .BAT file where you launch the PSR tool first, then launch your application, and upon application closure, stop the recorder. e.g.

@ECHO OFF
START /B PSR.EXE /START /OUTPUT "[outFilePath]" /SC 1 /MAXSC 25 /GUI 0
CALL "[pathToYourApp]"
PSR.EXE /STOP
Johan
  • 74,508
  • 24
  • 191
  • 319