예제 #1
0
 public static ISerializableBotTask DragElementTo(this IUIElement from, IUIElement to, VirtualKeyCode?modifier = null)
 {
     return(new BotTask(nameof(DragElementTo))
     {
         ClientActions = new[]
         {
             from.MouseClick(MouseButtonIdEnum.Left).AsRecommendation(),
             modifier?.KeyDown()?.AsRecommendation(),
             from.MouseDragAndDropOn(to.RegionInteraction, MouseButtonIdEnum.Left)
             .AsRecommendation(),
             modifier?.KeyUp()?.AsRecommendation(),
         }
     });
 }
예제 #2
0
 static public MotionResult KeyUp(
     this IHostToScript sanderling,
     VirtualKeyCode key) =>
 sanderling?.MotionExecute(key.KeyUp());
예제 #3
0
		static public MotionResult KeyUp(
			this IHostToScript sanderling,
			VirtualKeyCode key) =>
			sanderling?.MotionExecute(key.KeyUp());