Ejemplo n.º 1
0
        public MouseStatistics(ActiveTime total, TimePerHour activityPerHour, double screenMapScale)
        {
            Stats = new MouseStats();
            Stats.ClicksPerHour     = new CountPerHour(activityPerHour);
            Stats.DistancePerHour   = new CountPerHour(activityPerHour);
            Stats.MouseActivity     = new ActiveTime(total);
            Stats.DoubleClickTime   = new Histogram(0.01);
            Stats.MovementSpeed     = new Histogram(50);
            Stats.MovementDirection = new Histogram(45);

            var w = (int)(SystemParameters.VirtualScreenWidth / screenMapScale);

            ClickMap       = new ScreenBitmap(w);
            DoubleClickMap = new ScreenBitmap(w);
            TraceMap       = new ScreenBitmap(w);
            DragTraceMap   = new ScreenBitmap(w);

            // Get the top left corner of the screen
            Point origin = new Point();

            foreach (System.Windows.Forms.Screen s in System.Windows.Forms.Screen.AllScreens)
            {
                origin.X = Math.Min(origin.X, s.Bounds.X);
                origin.Y = Math.Min(origin.Y, s.Bounds.Y);
            }

            Stats.Origin = origin;
        }
Ejemplo n.º 2
0
 public KeyboardStatistics(ActiveTime total, TimePerHour activityPerHour)
 {
     Stats                  = new KeyboardStats();
     Stats.KeyUsage         = new Dictionary <string, int>();
     Stats.KeyboardActivity = new ActiveTime(total);
     Stats.KeyCountPerHour  = new CountPerHour(activityPerHour);
     TypingSpeed            = new Histogram(25);
 }
Ejemplo n.º 3
0
 public Statistics(ActiveTime reference)
 {
     Activity = new ActiveTime(reference);
     ActivityPerHour = new TimePerHour();
     KeyboardStatistics = new KeyboardStatistics(Activity, ActivityPerHour);
     MouseStatistics = new MouseStatistics(Activity, ActivityPerHour, 1);
     InterruptionsPerHour = new CountPerHour();
     WindowSwitchesPerHour = new CountPerHour();
 }
Ejemplo n.º 4
0
        public MouseStatistics(ActiveTime total, TimePerHour activityPerHour, double screenMapScale)
        {
            ClicksPerHour = new CountPerHour(activityPerHour);
            DistancePerHour = new CountPerHour(activityPerHour);
            MouseActivity = new ActiveTime(total);
            DoubleClickTime = new Histogram(0.01);
            MovementSpeed = new Histogram(50);
            MovementDirection = new Histogram(45);

            var w = (int)(SystemParameters.PrimaryScreenWidth / screenMapScale);
            ClickMap = new ScreenBitmap(w);
            DoubleClickMap = new ScreenBitmap(w);
            TraceMap = new ScreenBitmap(w);
            DragTraceMap = new ScreenBitmap(w);
        }
Ejemplo n.º 5
0
 public CountPerHour(TimePerHour reference = null)
 {
     Count     = new int[24];
     Reference = reference;
 }