/// <summary>
        ///
        /// </summary>
        /// <param name="Paths">Existing RecordedMousePaths object to record the data to.</param>
        public MousePathRecorder(RecordedMousePaths Paths)
        {
            this.Paths = Paths;

            // reset current path recording
            ResetPath();
        }
Example #2
0
        public RecordedMouseMover(RecordedMousePaths Paths, MouseActionPerformer BackupMethod)
        {
            if (Paths == null || BackupMethod == null)
            {
                throw new ArgumentNullException();
            }

            this.Paths        = Paths;
            this.BackupMethod = BackupMethod;
        }
Example #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="FilePath">File path to read and write to</param>
 public RecordedMousePathsFile(string FilePath)
 {
     this.FilePath = FilePath;
     if (File.Exists(FilePath))
     {
         Paths = RecordedMousePaths.FromJson(File.ReadAllText(FilePath));
     }
     else
     {
         Paths = new RecordedMousePaths();
     }
 }