Is there a tool for collecting usage statistics for Win32 applications?

Is there any tool that can do this? Like a website and for the same basic reasons?

UPDATE --- I mean collecting statistics about the application I'm writing. I need to know what options are used most often, when, times, etc.

+5
source share
3 answers

I have done something similar in the past.

There are two ways that I can come up with for this.

Using Actions:

, TActionList.OnExecute. , , .

:

procedure TForm1.ActionList1Execute(Action: TBasicAction; var Handled: Boolean);
begin
   WriteToLog(TAction(TBasicAction).Caption);
end;

:

Actions, , . , TMenuItem . MENU uses , . TMenuItem . , .

, , .

unit MenuItemLogger;

interface

uses Menus;

Type
  TMenuItem = class(Menus.TMenuItem)
  public
    procedure Click; override;
  end;

implementation

uses windows;

{ TMenuItem }

procedure TMenuItem.Click;
begin
  outputdebugstring(PWideChar(self.Caption));
  inherited;
end;

end.

, uses /DataModule (TMainMenu TPopupMenu), . , .

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ActnList, Menus, MenuItemLogger;

, , , , .

+3

, Windows

Windows (SYSMON),

" " delphi

0

?

-1

All Articles