static S screenshotBot(S s) { new Matches m; if "screenshot" ret structure(ll("png", toPNG(shootScreen2()))); if "screen size" ret structure(ll(screenWidth(), screenHeight())); if "screenshot xywh * * * *" { Rect r = new Rect(parseInt($1), parseInt($2), parseInt($3), parseInt($4)); ret structure(ll("png", toPNG(shootScreen2(r)))); } null; }