Shell脚本循环切换电视频道脚本
#!/system/bin/sh time=$1 if [[ $time < 1 ]] then echo "请输入运行次数" else echo "请将焦点选中DTV或ATV频道" input keyevent 3 sleep 1 input keyevent 21 sleep 1 input keyevent 21 sleep 2 input keyevent 22 sleep 2 input keyevent 23 sleep 1 while [[ $time > 0 ]] do echo "运行次数$time" input keyevent 166 input keyevent 166 input keyevent 167 let "time--" done echo "运行结束" fi
时间: 2024-11-06 07:29:36