基于autojs编写⼀个⾃弹钢琴脚本——《纸短情长》需求分析:
硬件:Android⼿机⼀部
软件:Autojs、明⽇之后(含钢琴键位即可)
系统:Android 7.0以上版本
话不多说,直接上代码:
var S=0.8;//S=脚本播放的倍速,越⼤越快
toast("纸短情长");
var Y=device.width;
var X=device.height;
var Y1=Y/15
var Y2=Y1*3
Y1=Y-Y1
Y2=Y-Y2
var Z=X/1920;
sleep(1000/S);
toast("开始弹奏");
sleep(2000/S);
sleep(0/S);
gestures([0,1,[999*Z,Y2]]);
sleep(120/S);
gestures([0,1,[1055*Z,Y1]]);
sleep(120/S);
gestures([0,1,[1147*Z,Y2]]);
sleep(120/S);
gestures([0,1,[1166*Z,Y1]]);
sleep(120/S);
gestures([0,1,[1258*Z,Y2]]);
sleep(120/S);
gestures([0,1,[1314*Z,Y1]]);
sleep(1200/S);
gestures([0,1,[1277*Z,Y1]]);
sleep(60/S);
gestures([0,1,[1314*Z,Y1]]);
sleep(60/S);
gestures([0,1,[1277*Z,Y1]]);
sleep(120/S);
gestures([0,1,[1258*Z,Y2]]);
sleep(120/S);
gestures([0,1,[1203*Z,Y1]]);
sleep(120/S);
gestures([0,1,[1166*Z,Y1]]);
sleep(120/S);
gestures([0,1,[1147*Z,Y2]]);
sleep(240/S);
gestures([0,1,[1166*Z,Y1]]);
sleep(1200/S);
gestures([0,1,[1258*Z,Y2],[648*Z,Y1]]);
sleep(120/S);
gestures([0,1,[1092*Z,Y1]]);
sleep(120/S);
gestures([0,1,[1203*Z,Y1]]);
sleep(120/S);
gestures([0,1,[1258*Z,Y2]]);
sleep(240/S);
gestures([0,1,[1092*Z,Y1]]);
sleep(120/S);
gestures([0,1,[1203*Z,Y1]]);
sleep(120/S);
gestures([0,1,[1258*Z,Y2]]);
gestures([0,1,[1258*Z,Y2]]);
sleep(120/S);
gestures([0,1,[1203*Z,Y1],[629*Z,Y2]]); sleep(120/S);
gestures([0,1,[1055*Z,Y1]]);
sleep(120/S);
gestures([0,1,[1147*Z,Y2]]);
sleep(120/S);
gestures([0,1,[1203*Z,Y1]]);
sleep(240/S);
gestures([0,1,[1055*Z,Y1]]);
sleep(120/S);
gestures([0,1,[1147*Z,Y2]]);
sleep(120/S);
gestures([0,1,[1203*Z,Y1]]);
sleep(120/S);
gestures([0,1,[1166*Z,Y1],[574*Z,Y1]]); sleep(120/S);
gestures([0,1,[999*Z,Y2]]);
sleep(120/S);
gestures([0,1,[1092*Z,Y1]]);
sleep(120/S);
gestures([0,1,[1166*Z,Y1]]);
sleep(240/S);
gestures([0,1,[1166*Z,Y1]]);
sleep(240/S);
gestures([0,1,[1092*Z,Y1]]);
sleep(120/S);
sleep(240/S);
gestures([0,1,[1055*Z,Y1]]);
sleep(2160/S);
gestures([0,1,[1055*Z,Y1]]);
sleep(480/S);
gestures([0,1,[1258*Z,Y2],[648*Z,Y1]]); sleep(240/S);
gestures([0,1,[1258*Z,Y2],[796*Z,Y1]]); sleep(240/S);
gestures([0,1,[1258*Z,Y2],[907*Z,Y1]]); sleep(240/S);
gestures([0,1,[1203*Z,Y1],[944*Z,Y1]]); sleep(240/S);
gestures([0,1,[1258*Z,Y2],[999*Z,Y2]]); sleep(240/S);
gestures([0,1,[1166*Z,Y1]]);
sleep(720/S);
gestures([0,1,[1203*Z,Y1],[629*Z,Y2]]); sleep(240/S);
gestures([0,1,[1203*Z,Y1],[796*Z,Y1]]); sleep(240/S);
gestures([0,1,[1203*Z,Y1],[888*Z,Y2]]); sleep(240/S);
gestures([0,1,[1166*Z,Y1],[907*Z,Y1]]); sleep(240/S);
gestures([0,1,[1203*Z,Y1],[944*Z,Y1]]); sleep(240/S);
gestures([0,1,[1314*Z,Y1]]);
sleep(720/S);
gestures([0,1,[1166*Z,Y1],[574*Z,Y1]]); sleep(240/S);
gestures([0,1,[1166*Z,Y1],[740*Z,Y2]]); sleep(240/S);
gestures([0,1,[1166*Z,Y1],[833*Z,Y1]]); sleep(240/S);
gestures([0,1,[1092*Z,Y1],[907*Z,Y1]]); sleep(240/S);
gestures([0,1,[1166*Z,Y1],[999*Z,Y2]]);
gestures([0,1,[1166*Z,Y1],[999*Z,Y2]]); sleep(240/S);
gestures([0,1,[1092*Z,Y1]]);
sleep(480/S);
gestures([0,1,[1055*Z,Y1]]);
sleep(240/S);
gestures([0,1,[1203*Z,Y1],[537*Z,Y1]]); sleep(240/S);
gestures([0,1,[1203*Z,Y1],[685*Z,Y1]]); sleep(240/S);
gestures([0,1,[1203*Z,Y1],[796*Z,Y1]]); sleep(240/S);
gestures([0,1,[1258*Z,Y2],[888*Z,Y2]]); sleep(240/S);
gestures([0,1,[1092*Z,Y1],[944*Z,Y1]]); sleep(240/S);
gestures([0,1,[1055*Z,Y1]]);
sleep(720/S);
gestures([0,1,[1277*Z,Y1],[500*Z,Y1]]); sleep(240/S);
gestures([0,1,[1277*Z,Y1],[648*Z,Y1]]); sleep(240/S);
gestures([0,1,[1277*Z,Y1],[759*Z,Y1]]); sleep(240/S);
gestures([0,1,[1258*Z,Y2],[796*Z,Y1]]); sleep(240/S);
gestures([0,1,[1277*Z,Y1],[833*Z,Y1]]); sleep(240/S);
gestures([0,1,[1166*Z,Y1]]);
sleep(720/S);
gestures([0,1,[1203*Z,Y1],[481*Z,Y2]]); sleep(240/S);
gestures([0,1,[1203*Z,Y1],[629*Z,Y2]]); sleep(240/S);
gestures([0,1,[1203*Z,Y1],[740*Z,Y2]]); sleep(240/S);
gestures([0,1,[1166*Z,Y1],[796*Z,Y1]]); sleep(240/S);
gestures([0,1,[1203*Z,Y1],[888*Z,Y2]]); sleep(240/S);
gestures([0,1,[1314*Z,Y1]]);
sleep(720/S);
gestures([0,1,[426*Z,Y1]]);
sleep(240/S);
gestures([0,1,[574*Z,Y1]]);
sleep(240/S);
gestures([0,1,[685*Z,Y1]]);
sleep(240/S);
gestures([0,1,[740*Z,Y2]]);
sleep(240/S);
gestures([0,1,[759*Z,Y1]]);
sleep(360/S);
gestures([0,1,[796*Z,Y1]]);
sleep(360/S);
gestures([0,1,[833*Z,Y1]]);
sleep(240/S);
gestures([0,1,[1258*Z,Y2],[389*Z,Y1]]); sleep(240/S);
gestures([0,1,[1203*Z,Y1],[537*Z,Y1]]); sleep(240/S);
gestures([0,1,[1203*Z,Y1],[648*Z,Y1]]); sleep(240/S);
gestures([0,1,[1166*Z,Y1],[740*Z,Y2]]); sleep(240/S);
gestures([0,1,[1166*Z,Y1],[796*Z,Y1]]); sleep(480/S);
sleep(480/S);
gestures([0,1,[740*Z,Y2]]);
sleep(480/S);
gestures([0,1,[389*Z,Y1],[648*Z,Y1]]); sleep(1200/S);
gestures([0,1,[1166*Z,Y1]]);
sleep(240/S);
gestures([0,1,[1166*Z,Y1]]);
sleep(240/S);
gestures([0,1,[1203*Z,Y1]]);
sleep(240/S);
gestures([0,1,[1258*Z,Y2],[648*Z,Y1]]); sleep(240/S);
gestures([0,1,[796*Z,Y1]]);
sleep(240/S);
gestures([0,1,[1277*Z,Y1],[907*Z,Y1]]); sleep(240/S);
gestures([0,1,[1258*Z,Y2],[796*Z,Y1]]); sleep(240/S);
gestures([0,1,[999*Z,Y2]]);
sleep(240/S);
gestures([0,1,[1258*Z,Y2],[796*Z,Y1]]); sleep(240/S);
gestures([0,1,[1203*Z,Y1],[907*Z,Y1]]); sleep(240/S);
gestures([0,1,[1166*Z,Y1],[796*Z,Y1]]); sleep(240/S);
gestures([0,1,[1147*Z,Y2],[629*Z,Y2]]); sleep(240/S);
gestures([0,1,[796*Z,Y1]]);
sleep(240/S);
gestures([0,1,[1351*Z,Y1],[888*Z,Y2]]); sleep(240/S);
gestures([0,1,[1314*Z,Y1],[796*Z,Y1]]); sleep(240/S);
gestures([0,1,[944*Z,Y1]]);
sleep(240/S);
gestures([0,1,[1314*Z,Y1],[796*Z,Y1]]); sleep(240/S);
gestures([0,1,[1351*Z,Y1],[888*Z,Y2]]); sleep(240/S);
gestures([0,1,[1406*Z,Y2],[796*Z,Y1]]); sleep(240/S);
gestures([0,1,[1425*Z,Y1],[574*Z,Y1]]); sleep(240/S);
gestures([0,1,[740*Z,Y2]]);
sleep(240/S);
gestures([0,1,[1258*Z,Y2],[833*Z,Y1]]); sleep(240/S);
gestures([0,1,[1258*Z,Y2],[740*Z,Y2]]); sleep(240/S);
js脚本编程入门gestures([0,1,[907*Z,Y1]]);
sleep(240/S);
gestures([0,1,[1425*Z,Y1],[740*Z,Y2]]); sleep(240/S);
gestures([0,1,[1406*Z,Y2],[833*Z,Y1]]); sleep(240/S);
gestures([0,1,[1425*Z,Y1],[740*Z,Y2]]); sleep(240/S);
gestures([0,1,[1406*Z,Y2],[537*Z,Y1]]); sleep(240/S);
gestures([0,1,[685*Z,Y1]]);
sleep(240/S);
gestures([0,1,[1258*Z,Y2],[796*Z,Y1]]); sleep(240/S);
gestures([0,1,[1314*Z,Y1],[685*Z,Y1]]);
gestures([0,1,[1314*Z,Y1],[685*Z,Y1]]); sleep(240/S);
gestures([0,1,[888*Z,Y2]]);
sleep(240/S);
gestures([0,1,[685*Z,Y1]]);
sleep(240/S);
gestures([0,1,[1314*Z,Y1],[796*Z,Y1]]); sleep(240/S);
gestures([0,1,[1351*Z,Y1],[685*Z,Y1]]); sleep(240/S);
gestures([0,1,[1425*Z,Y1],[500*Z,Y1]]); sleep(240/S);
gestures([0,1,[1351*Z,Y1],[648*Z,Y1]]); sleep(240/S);
gestures([0,1,[759*Z,Y1]]);
sleep(240/S);
gestures([0,1,[1351*Z,Y1],[648*Z,Y1]]); sleep(240/S);
gestures([0,1,[833*Z,Y1]]);
sleep(240/S);
gestures([0,1,[1351*Z,Y1],[648*Z,Y1]]); sleep(240/S);
gestures([0,1,[1314*Z,Y1],[759*Z,Y1]]); sleep(240/S);
gestures([0,1,[1277*Z,Y1],[648*Z,Y1]]); sleep(240/S);
gestures([0,1,[1314*Z,Y1],[481*Z,Y2]]); sleep(240/S);
gestures([0,1,[1258*Z,Y2],[629*Z,Y2]]); sleep(240/S);
gestures([0,1,[740*Z,Y2]]);
sleep(240/S);
gestures([0,1,[1203*Z,Y1],[629*Z,Y2]]); sleep(240/S);
gestures([0,1,[1166*Z,Y1],[796*Z,Y1]]); sleep(240/S);
gestures([0,1,[629*Z,Y2]]);
sleep(240/S);
gestures([0,1,[740*Z,Y2]]);
sleep(240/S);
gestures([0,1,[1092*Z,Y1],[629*Z,Y2]]); sleep(120/S);
gestures([0,1,[1166*Z,Y1]]);
sleep(120/S);
gestures([0,1,[1258*Z,Y2],[426*Z,Y1]]); sleep(240/S);
gestures([0,1,[1203*Z,Y1],[574*Z,Y1]]); sleep(240/S);
gestures([0,1,[1203*Z,Y1],[685*Z,Y1]]); sleep(240/S);
gestures([0,1,[1166*Z,Y1],[574*Z,Y1]]); sleep(240/S);
gestures([0,1,[1203*Z,Y1],[759*Z,Y1]]); sleep(240/S);
gestures([0,1,[1314*Z,Y1],[574*Z,Y1]]); sleep(240/S);
gestures([0,1,[685*Z,Y1]]);
sleep(240/S);
gestures([0,1,[1166*Z,Y1],[574*Z,Y1]]); sleep(240/S);
gestures([0,1,[1203*Z,Y1],[537*Z,Y1]]); sleep(240/S);
gestures([0,1,[685*Z,Y1]]);
sleep(240/S);
gestures([0,1,[796*Z,Y1]]);
sleep(240/S);
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论