コード例 #1
0
        public async Task <IActionResult> TapAndCapture(string game, [FromBody] TapRequest request)
        {
            AdbDroid.Tap(game, request.X, request.Y);

            await Task.Delay(TimeSpan.FromSeconds(0.5));

            var screenshotName = CaptureByAction(game, $"{request.X};{request.Y}");

            //var screenshotName = CaptureByAction(game, "wait");

            return(Json(new { visionShot = screenshotName }));
        }
コード例 #2
0
 public IActionResult Tap(string game, [FromBody] TapRequest request)
 {
     AdbDroid.Tap(game, request.X, request.Y);
     return(Json(new {}));
 }