/// <summary> /// Moves, presses key down, waits for given time and releases the key up. /// </summary> /// <param name="x"></param> /// <param name="y"></param> /// <param name="aWaitPeriod">The time to wait between the press down and up</param> /// <param name="btn">Which button to click</param> /// <returns></returns> public static Task MoveClickHold(int x, int y, TimeSpan aWaitPeriod, MouseButton btn = MouseButton.Left) { return(controller.MoveClickHold(x, y, aWaitPeriod, btn)); }