抖音直播自动点赞shell脚本

i=1
while [ $i -le $1 ]
do
    echo "当前点赞:$i"
    i=$((i+1))
    x=$((RANDOM % 90 + 10 + 500))
    y=$((RANDOM % 90 + 10 + 900))
    random_sleep=$(awk -v min=0.2 -v max=0.6 'BEGIN{srand(); print (min+rand()*(max-min))}')
    adb shell input touchscreen tap $x $y
    sleep $random_sleep
done

你可能感兴趣的:(android,群控)