Beispiel #1
0
 public static object[] MouseEvent(params object[] ps)
 {
     try
     {
         var Mevent = Enum.Parse(typeof(Meths.MouseEventFlags), ps[0].ToString());
         Meths.mouse_event((uint)(int)Mevent, 0, 0, 0, 0);
     }
     catch (NullReferenceException) { MessageBox.Show("В MouseEvent не передано событие " + ps[0]); return(ps); }
     catch { MessageBox.Show("В MouseEvent не найдено событие " + ps[0]); return(ps); }
     return(ps);
 }
Beispiel #2
0
 public static object[] MoveCursorBy(params object[] ps)
 {
     try
     {
         int X = (int)ps[0];
         int Y = (int)ps[1];
         Meths.mouse_event(0x00000001, X, Y, 0, 0);
     }
     catch (Exception e) { MessageBox.Show(e.ToString()); return(ps); }
     return(ps);
 }