Exemplo n.º 1
0
 void Cursor_Released(object sender, CursorReleasedArgs e)
 {
     Window.Dispatcher.Invoke(() =>
     {
         if (e.Duration > Settings.Current.CursorOpenMenuWaitDuration)
         {
             Window.Click(false);
             ShortcutMenuWindow.OpenPopup(new System.Windows.Point(Window.ActualLeft, Window.ActualTop));
         }
         else
         {
             Window.Click();
         }
     });
 }
Exemplo n.º 2
0
 void Cursor_Released(object sender, CursorReleasedArgs e)
 {
     AddMessage("released|" + ApiSerializer.Released(new ApiSerializer.CursorReleasedArgs(e.StartPosition, e.EndPosition, e.Duration)));
 }
Exemplo n.º 3
0
 public static string Released(CursorReleasedArgs arg)
 {
     return($"{arg.Duration}/{arg.StartPosition.Serialize()}/{arg.EndPosition.Serialize()}");
 }