Esempio n. 1
0
 public async static Task Send(MouseSequenceItem item)
 {
     ExecuteMouseSequenceItem(item);
 }
Esempio n. 2
0
 public static void ExecuteMouseSequenceItem(MouseSequenceItem item)
 {
     switch (item.Type)
     {
         case 0:
             Mouse.ButtonDown((Mouse.MouseKeys)item.Button);
             Thread.Sleep(item.Time);
             Mouse.ButtonUp((Mouse.MouseKeys)item.Button);
             break;
         case 1:
             Mouse.Move(item.X, item.Y);
             break;
         default:
             Mouse.MoveRelative(item.X, item.Y);
             break;
     }
 }